/********************8* Template Data **************************/

/****** parameters ******/
static int TargetThreshold[] = 
{80,80,78,72,78,81,86,88,83,84,87,81,78,87,89,91,95,96,93,93,90,92,92,94,85,79,83,84,87,80,75,74,69,72,71,78,87,84,69,67,71,70,71,76,72,72,73,71,75,77,74,72,75,74,77,72,77,72,68,62,59,62,61,61,53,53,65,61,64,66,66,70};

static int SurroundThreshold[] = 
{21,21,21,21,22,24,25,26,24,25,24,24,23,23,23,23,22,22,21,21,23,24,23,25,25,24,25,24,24,24,24,24,23,23,22,22,24,22,23,23,23,23,22,24,23,21,22,21,21,21,20,20,21,20,21,20,22,22,22,21,21,22,21,21,19,19,20,19,19,19,19,19};

static float CombinedThreshold = 1.4;

static int TargetPixelCount[] = 
{133,132,129,120,129,135,142,146,138,139,144,135,130,145,148,151,158,160,154,154,150,152,152,156,141,131,137,139,145,132,124,123,114,119,117,130,144,139,115,111,118,116,117,126,119,119,121,118,124,127,122,120,125,123,128,119,127,120,113,103,98,102,100,100,88,87,107,101,106,109,110,116};

static int SurroundPixelCount[] = 
{58,58,58,58,62,66,70,74,66,70,68,66,64,64,64,64,62,62,58,60,64,68,64,70,70,68,70,68,68,66,66,66,64,64,62,62,66,62,64,64,64,64,62,68,64,60,62,60,60,60,56,56,58,56,58,56,62,62,62,58,60,62,58,58,52,54,56,54,54,54,52,54};

static float TargetScoreScaleFactor[] = 
{
0.008393037,0.00845662,0.008653287,0.009302283,0.008653287,0.008268696,0.007861084,0.007645712,0.008088942,0.008030748,0.0077519026,0.008268696,0.008586722,0.007698441,0.007542392,0.007392543,0.007065025,0.006976712,0.007248532,0.007248532,0.007441826,0.0073439074,0.0073439074,0.0071556023,0.007916836,0.008521175,0.008147985,0.008030748,0.007698441,0.00845662,0.00900221,0.009075398,0.009791877,0.009380453,0.009540803,0.008586722,0.0077519026,0.008030748,0.00970673,0.010056522,0.009459949,0.009623052,0.009540803,0.008859317,0.009380453,0.009380453,0.009225405,0.009459949,0.00900221,0.008789559,0.009149786,0.009302283,0.008930191,0.009075398,0.008720891,0.009380453,0.008789559,0.009302283,0.00987853,0.010837611,0.01139055,0.010943863,0.011162739,0.011162739,0.012684931,0.012830735,0.010432467,0.011052217,0.010530886,0.010241046,0.010147945,0.009623052};

static float SurroundScoreScaleFactor[] = 
{0.01724138,0.01724138,0.01724138,0.01724138,0.016129032,0.015151516,0.014285714,0.013513514,0.015151516,0.014285714,0.014705882,0.015151516,0.015625,0.015625,0.015625,0.015625,0.016129032,0.016129032,0.01724138,0.016666668,0.015625,0.014705882,0.015625,0.014285714,0.014285714,0.014705882,0.014285714,0.014705882,0.014705882,0.015151516,0.015151516,0.015151516,0.015625,0.015625,0.016129032,0.016129032,0.015151516,0.016129032,0.015625,0.015625,0.015625,0.015625,0.016129032,0.014705882,0.015625,0.016666668,0.016129032,0.016666668,0.016666668,0.016666668,0.017857144,0.017857144,0.01724138,0.017857144,0.01724138,0.017857144,0.016129032,0.016129032,0.016129032,0.01724138,0.016666668,0.016129032,0.01724138,0.01724138,0.01923077,0.018518519,0.017857144,0.018518519,0.018518519,0.018518519,0.01923077,0.018518519};

static int TargetScaleInt[] = 
{8393,8457,8653,9302,8653,8269,7861,7646,8089,8031,7752,8269,8587,7698,7542,7393,7065,6977,7249,7249,7442,7344,7344,7156,7917,8521,8148,8031,7698,8457,9002,9075,9792,9380,9541,8587,7752,8031,9707,10057,9460,9623,9541,8859,9380,9380,9225,9460,9002,8790,9150,9302,8930,9075,8721,9380,8790,9302,9879,10838,11391,10944,11163,11163,12685,12831,10432,11052,10531,10241,10148,9623};

static int SurroundScaleInt = 
{17241,17241,17241,17241,16129,15152,14286,13514,15152,14286,14706,15152,15625,15625,15625,15625,16129,16129,17241,16667,15625,14706,15625,14286,14286,14706,14286,14706,14706,15152,15152,15152,15625,15625,16129,16129,15152,16129,15625,15625,15625,15625,16129,14706,15625,16667,16129,16667,16667,16667,17857,17857,17241,17857,17241,17857,16129,16129,16129,17241,16667,16129,17241,17241,19231,18519,17857,18519,18519,18519,19231,18519};

static int SurroundUpperClipping = 69;


/******** upper/lower data *******/
static int Lower[] = 
{
  /* Template 0 */
  {62,61,72,82,85,70,79,69,79,84,89,88,69,69,59,65,94,108,100,79,35,57,64,80,75,100,96,109,101,88,53,63,65,87,119,103,106,113,115,114,60,62,70,97,118,113,97,102,105,122,89,57,67,78,103,111,82,75,103,114,85,48,60,90,96,86,94,89,95,103,76,47,68,75,89,87,100,95,93,84,67,37,84,89,92,91,119,103,103,90,79,51,78,84,79,78,123,113,110,81,1,62,96,98,99,107,98,87,98,90,101,92,97,113,87,105,79,82,71,65,25,48,85,59,91,99,60,37,65,54,50,70,59},
  /* Template 1 */
  {56,78,80,76,74,68,85,85,89,79,69,62,76,77,89,90,79,78,73,37,60,82,93,93,90,98,106,73,56,43,52,70,99,103,87,97,106,69,56,72,88,103,102,94,104,97,66,58,47,67,82,98,95,105,114,106,74,61,64,74,69,78,85,106,91,102,75,63,65,80,80,89,70,79,77,69,70,71,79,92,98,101,94,70,64,55,77,84,98,97,114,100,63,59,59,98,97,104,112,113,109,78,69,50,96,104,104,109,108,105,92,21,0,58,76,73,78,92,81,99,84,56,0,29,27,25,48,60,56,37,35,56},
  /* Template 2 */
  {70,74,75,51,65,53,61,73,70,72,62,66,76,58,65,78,74,61,87,82,72,59,56,57,92,93,83,96,87,65,54,59,60,72,91,93,92,95,89,72,58,73,79,93,91,95,98,105,69,56,75,81,88,89,104,105,102,64,58,86,77,86,98,93,93,59,56,59,80,91,85,100,95,78,61,67,66,74,90,92,87,95,93,90,55,59,65,73,89,92,90,96,82,79,61,75,82,82,85,102,105,101,84,84,87,85,91,95,105,107,97,67,63,74,66,79,77,92,97,84,61,48,61,62,65,81,62,45,61},
  /* Template 3 */
  {59,63,75,67,73,78,71,77,72,74,54,61,80,84,79,95,92,91,71,62,80,95,84,97,94,72,59,71,86,92,88,100,100,78,56,55,71,79,92,89,95,94,77,60,41,77,90,84,90,94,93,81,60,49,88,97,77,95,96,90,51,61,71,74,80,78,84,93,83,64,70,80,86,92,94,92,94,70,62,74,89,103,109,96,86,73,62,80,84,87,107,108,113,90,76,74,79,83,89,97,100,108,97,70,66,68,64,81,76,79,85,84,50,58,70,63,73,47,57,74},
  /* Template 4 */
  {70,65,58,58,80,75,79,73,66,56,47,62,78,90,83,86,95,97,66,67,67,83,92,93,91,97,97,69,58,56,74,78,90,87,88,100,95,74,71,62,79,92,96,96,101,104,90,77,65,60,92,103,98,99,98,102,91,64,57,104,93,91,95,107,103,74,52,68,83,77,82,95,92,80,61,58,65,87,97,93,95,98,97,74,60,72,61,76,96,95,103,89,85,78,64,73,72,71,93,105,106,89,90,81,60,63,70,79,97,94,95,87,92,66,53,65,74,68,84,82,72,55,57,66,69,36,0,66,57},
  /* Template 5 */
  {50,61,56,54,63,65,67,66,75,67,75,72,55,56,74,78,78,81,85,64,56,59,67,80,88,87,90,92,74,67,49,61,74,91,94,92,94,103,99,76,49,61,80,96,90,87,101,109,102,84,71,64,63,82,104,81,80,101,101,98,69,59,66,79,93,96,89,107,105,81,57,65,80,72,66,87,93,100,92,74,61,61,74,86,90,87,95,93,95,78,63,64,67,77,92,100,102,94,93,87,70,67,68,82,96,105,103,99,93,85,63,61,65,87,87,70,93,97,91,70,64,63,46,0,62,82,64,32,44,60,50,0,56,54,9},
  /* Template 6 */
  {50,52,65,72,70,70,72,62,56,64,74,84,86,84,69,56,66,69,87,88,90,91,76,73,62,67,71,88,97,90,91,103,98,86,70,59,67,80,95,122,116,108,110,113,96,76,65,54,72,83,94,114,109,108,110,113,90,68,60,57,69,79,94,104,100,111,112,91,68,59,58,68,73,73,80,89,106,112,100,78,61,64,72,83,87,90,98,113,104,79,68,54,78,66,68,82,93,102,99,99,101,92,68,68,83,73,69,90,97,103,106,101,93,77,46,53,51,54,64,86,88,99,107,97,87,61,56,83,95,103,84,62,66,79,67,61,61,68,66,56,66,57},
  /* Template 7 */
  {48,53,63,69,66,70,67,57,57,62,70,83,84,85,72,48,64,68,71,80,89,86,94,88,73,59,64,79,88,90,94,84,98,99,87,69,44,66,78,92,121,117,101,110,107,95,74,68,57,74,76,93,107,119,113,121,116,89,71,64,53,51,64,66,93,98,112,116,119,102,80,61,57,65,65,69,72,77,81,94,109,120,105,78,67,49,30,69,69,76,90,89,88,101,110,106,89,71,46,52,82,79,74,92,96,101,92,111,103,90,64,71,74,67,80,90,100,105,102,100,85,60,49,56,72,98,108,98,101,74,45,35,84,102,92,77,61,57,72,60,67,62,74,68,62,59},
  /* Template 8 */
  {61,65,67,60,47,67,67,78,72,69,54,65,77,90,76,80,71,54,58,65,65,83,87,96,84,73,70,64,64,62,56,66,86,111,123,88,94,103,93,77,62,58,81,88,111,132,98,112,105,100,68,53,66,65,72,78,102,128,115,109,98,93,73,63,61,49,51,51,67,71,70,79,99,128,128,107,93,81,52,100,106,80,75,81,83,89,96,114,121,115,98,79,60,94,96,79,70,92,96,99,108,117,109,97,70,45,32,19,56,67,95,100,107,118,114,92,62,56,62,85,99,107,109,106,76,72,100,102,86,78,65,67,69,65,67,54,60,65},
  /* Template 9 */
  {61,55,61,68,59,58,70,76,70,63,48,50,60,77,77,85,72,63,59,72,75,84,87,83,83,84,77,59,65,70,64,77,94,94,97,97,99,91,85,66,68,66,78,89,102,121,100,121,120,98,81,71,58,53,72,67,82,86,106,130,114,115,121,87,77,55,48,71,69,62,78,81,81,92,100,127,121,106,97,82,53,97,99,63,68,82,84,87,102,113,115,115,92,69,61,59,62,58,74,87,89,103,126,130,120,91,63,66,60,68,76,89,94,114,122,116,95,77,59,60,62,84,98,108,110,88,70,59,83,89,82,75,68,49,69,70,59,57,60},
  /* Template 10 */
  {64,64,59,59,60,67,70,64,68,62,53,68,73,74,73,76,68,54,60,75,82,77,81,72,65,54,65,67,81,95,104,101,89,91,85,73,66,51,63,63,66,86,102,110,108,108,117,108,95,70,51,67,59,62,65,67,75,89,107,117,109,117,124,113,89,69,49,90,78,65,86,75,81,90,108,120,115,108,107,100,64,60,52,61,69,80,88,87,92,105,116,120,114,106,89,70,62,55,17,41,67,85,89,94,110,123,122,117,102,82,68,59,71,79,87,89,106,119,112,100,79,58,52,73,91,97,105,97,87,79,76,86,85,80,74,69,67,79,69,62,56,63,66,51},
  /* Template 11 */
  {63,65,63,55,63,58,61,70,64,65,60,67,60,66,74,57,69,75,77,75,72,81,68,56,57,74,87,100,103,94,89,75,67,57,59,57,63,75,94,102,104,100,95,95,91,61,60,83,69,67,72,69,71,80,94,93,91,84,106,106,91,53,98,96,55,69,80,65,71,85,97,113,113,106,104,103,79,63,60,31,61,80,84,77,94,107,122,120,115,101,84,59,61,71,72,76,92,109,121,125,125,119,98,81,72,51,58,69,73,93,112,125,127,110,94,74,55,64,91,96,96,89,75,66,62,75,75,74,74,36,62,78,64,50,58},
  /* Template 12 */
  {62,58,72,69,64,67,64,77,73,63,54,69,48,70,82,83,69,56,77,56,68,67,88,100,100,91,87,74,66,59,66,64,68,74,73,75,88,100,112,104,92,92,89,75,101,98,78,66,70,80,77,79,97,115,113,109,99,101,101,60,77,73,66,78,82,87,89,93,106,120,113,101,101,117,97,71,74,67,71,78,83,96,94,112,118,115,108,100,80,66,45,74,85,72,81,96,113,107,115,115,102,81,78,62,59,69,76,102,122,116,87,82,69,54,70,69,91,107,98,83,66,68,85,85,74,69,33,74,77,53},
  /* Template 13 */
  {59,62,67,65,56,65,61,59,71,72,77,75,67,68,62,62,78,76,74,80,73,76,64,11,23,5,65,77,65,64,78,79,88,93,92,82,71,66,52,90,95,53,64,78,60,71,78,97,107,97,93,99,85,81,69,57,83,90,64,68,66,75,71,86,96,108,104,100,109,111,94,74,61,29,63,71,83,78,88,87,91,107,120,114,103,108,111,101,72,55,55,69,68,77,89,96,105,109,123,131,112,100,99,99,92,67,64,59,66,87,102,123,119,125,123,98,89,81,75,59,57,73,83,103,124,115,102,87,76,64,64,79,82,89,104,103,64,58,77,79,68,74,70,59,68},
  /* Template 14 */
  {51,55,60,64,65,58,62,64,69,77,66,67,58,65,48,41,47,55,60,61,71,74,77,77,71,68,70,59,97,102,66,59,67,68,61,74,83,89,97,78,84,77,67,55,50,38,89,97,79,73,77,62,63,68,86,102,107,104,94,88,87,78,64,35,56,71,77,79,87,86,77,88,97,103,103,96,103,97,91,58,56,76,84,83,90,102,103,105,103,116,113,110,98,90,50,41,50,87,100,103,116,127,126,116,114,117,103,88,81,51,67,71,96,105,118,118,127,128,110,108,89,62,73,59,72,83,96,113,115,101,94,82,59,56,53,74,75,84,73,86,71,51,42,55,59,72,60,59},
  /* Template 15 */
  {64,58,53,61,55,58,59,62,78,70,71,70,69,67,62,61,54,64,73,64,57,64,84,91,78,72,71,60,51,94,86,79,79,75,70,77,84,93,89,75,88,70,66,58,57,59,64,86,83,81,71,83,82,88,114,107,101,102,83,74,72,70,38,76,75,82,86,89,89,91,95,113,113,93,99,102,100,94,76,71,66,74,90,99,93,90,99,106,108,99,110,118,117,89,55,64,73,101,115,111,103,106,125,116,120,117,117,114,86,54,51,76,101,117,125,121,122,116,107,112,104,107,103,66,63,83,98,101,106,101,98,88,75,80,69,66,58,49,86,103,85,85,81,67,59,60,102,78,54,44,0},
  /* Template 16 */
  {64,58,70,68,65,53,12,43,53,53,61,60,66,83,78,68,63,64,79,82,70,78,82,72,65,76,76,83,78,66,64,70,83,93,76,88,93,73,73,79,78,74,78,76,82,79,62,65,54,84,81,88,79,74,83,79,85,98,98,96,90,84,83,82,62,63,67,65,66,84,91,89,75,96,101,103,102,105,100,101,94,82,64,70,58,79,89,91,88,90,102,106,102,106,116,116,113,103,95,69,59,95,104,97,104,108,113,111,110,105,119,116,111,107,88,66,48,85,116,115,119,118,118,108,113,102,101,104,102,82,51,45,72,96,108,110,107,101,77,70,80,74,83,55,54,84,95,86,77,83,64,63,64,58,51,72,68,58},
  /* Template 17 */
  {50,56,61,64,60,64,75,62,73,78,74,57,58,68,67,73,71,57,55,58,93,96,107,101,86,64,62,75,72,86,69,60,71,66,51,83,92,95,97,77,55,73,73,78,87,80,79,77,68,57,63,68,78,82,76,65,67,81,89,91,103,99,95,98,81,77,69,69,77,81,71,83,89,97,100,108,104,100,107,97,98,93,85,72,65,80,106,105,120,127,112,120,114,110,121,116,125,128,90,77,82,101,115,138,140,135,138,126,125,132,127,121,116,114,58,87,104,114,134,138,135,139,128,122,132,126,121,110,93,39,107,110,102,109,124,126,121,89,83,107,103,95,87,60,60,114,109,86,79,88,96,75,74,28,31,43,67,41,46,38},
  /* Template 18 */
  {44,46,58,66,51,55,61,65,78,66,67,64,60,44,8,54,81,91,51,56,59,62,82,77,71,62,51,61,42,61,88,89,63,68,69,81,79,80,81,61,67,76,61,54,80,76,70,62,78,83,95,94,77,98,90,85,79,87,62,63,76,84,90,98,106,87,80,68,98,68,80,83,107,102,86,68,97,97,118,116,115,126,121,109,99,114,103,107,79,97,90,68,64,85,86,98,74,118,133,121,113,110,104,83,75,92,71,88,94,101,70,70,96,117,120,118,107,57,28,89,108,92,60,10,69,115,121,69,121,123,105,83,92,91,54,107,87,67,47,0,0,37,62,0,67,67,53,0,0,0,52,39,46,65},
  /* Template 19 */
  {58,87,72,43,59,55,74,111,77,55,66,77,68,77,75,63,59,63,93,111,85,66,73,78,65,75,69,58,67,70,62,61,98,109,85,68,80,87,79,82,74,74,72,66,72,65,69,76,92,93,92,95,97,91,85,96,99,84,77,77,73,57,81,85,98,100,105,104,101,102,103,104,99,107,96,87,80,61,75,96,97,102,110,102,103,120,115,107,97,107,103,105,116,87,76,88,104,103,115,113,121,124,128,120,119,113,108,114,114,94,105,102,102,100,112,120,132,131,131,127,121,118,117,113,85,75,86,89,93,93,108,105,120,129,119,113,96,111,106,88,68,46,37,48,56,66,71,73,55,70,63,61,57,51},
  /* Template 20 */
  {68,98,95,66,65,63,61,87,86,65,66,64,63,62,65,59,53,80,100,60,72,72,77,71,68,80,74,61,94,101,64,74,85,87,79,62,79,75,75,65,61,48,68,85,80,77,71,94,91,84,83,93,89,73,83,90,80,68,88,94,86,81,97,104,98,95,101,102,92,93,99,83,69,67,102,98,100,106,129,124,115,105,103,99,95,96,98,101,75,57,95,94,95,96,118,127,123,118,113,113,99,102,106,105,101,81,64,46,63,92,89,84,96,108,110,117,117,124,115,114,113,110,96,83,62,27,18,45,48,53,55,66,69,102,112,106,106,113,112,101,86,49,52,54,46,69,85,96,78,58},
  /* Template 21 */
  {62,75,80,59,60,62,59,87,95,73,65,62,61,100,95,76,75,72,66,60,66,67,115,108,76,73,73,74,73,67,68,62,49,59,75,106,88,65,80,76,77,75,72,71,66,69,69,78,85,101,99,76,91,90,85,77,73,75,75,70,81,66,59,82,114,118,103,96,106,111,99,91,83,84,87,91,91,69,63,60,79,109,115,100,116,127,120,107,94,92,94,95,99,98,82,70,73,77,106,98,99,117,136,131,118,111,108,102,104,103,102,104,78,78,102,86,81,99,117,100,106,116,111,112,119,116,112,110,72,71,91,86,92,96,102,106,112,112,100,93,64,57,55,65,75,94,75,53,62,24,43,43},
  /* Template 22 */
  {59,56,79,68,63,55,55,61,58,64,75,69,71,64,56,79,97,60,72,74,61,63,63,65,60,62,95,103,64,81,82,67,66,74,76,66,67,66,68,92,69,73,81,82,74,66,75,72,69,72,58,62,73,87,98,90,90,93,93,89,85,78,75,67,69,69,73,81,115,116,92,109,110,102,97,89,86,76,78,90,86,71,66,92,115,116,98,118,129,130,116,97,98,89,82,90,93,73,65,92,89,89,94,100,129,133,126,106,93,104,97,100,100,89,20,35,53,67,73,84,97,114,113,112,90,110,112,102,102,57,68,65,87,109,102,93,111,111,93,79,57,50,53,77,86,94,94,75,61,67,59,61},
  /* Template 23 */
  {63,57,57,54,47,61,48,62,68,66,58,70,67,75,72,69,52,53,73,106,90,75,72,72,68,56,59,60,75,102,77,75,78,70,72,67,62,45,57,66,75,88,85,75,76,74,73,71,70,57,39,54,63,77,108,110,97,93,86,80,81,78,76,69,64,69,70,62,65,73,112,120,99,106,114,107,100,93,89,82,65,64,75,73,70,97,115,88,102,117,133,134,117,110,95,81,77,86,94,76,58,80,79,69,92,109,127,121,116,116,92,94,96,105,107,90,66,57,70,72,90,96,110,113,101,99,108,119,120,95,71,70,81,104,105,99,107,115,113,108,92,60,48,64,95,106,109,105,81,76,60,91,91,67,64,39},
  /* Template 24 */
  {77,84,64,63,61,65,65,73,71,64,55,45,24,58,65,70,71,59,76,91,80,67,71,68,66,62,59,67,95,109,98,82,83,84,79,77,82,67,63,85,128,116,94,90,92,97,84,83,77,66,60,70,65,57,94,108,106,82,109,116,106,91,86,82,82,70,61,43,62,38,65,44,47,94,115,136,126,104,101,90,77,83,78,69,58,41,60,51,70,65,97,106,112,106,102,94,98,94,88,80,50,56,95,93,115,116,104,109,102,101,90,58,61,63,86,93,114,114,111,112,112,102,86,64,53,67,81,110,113,111,105,92,74,72,75,86,81,63,10,0,24},
  /* Template 25 */
  {63,63,57,67,53,53,60,68,56,62,71,76,75,73,68,59,57,65,89,99,79,79,75,72,67,56,71,92,122,112,79,83,85,82,75,67,58,53,64,76,116,121,98,83,94,99,91,93,71,63,63,63,66,82,90,80,87,110,111,116,99,86,74,64,65,71,66,64,69,76,72,80,110,131,125,109,89,86,80,69,78,72,70,58,93,104,111,110,109,106,86,92,98,92,78,61,74,88,103,112,114,106,98,100,98,88,48,65,90,115,115,113,118,117,90,75,55,75,104,111,123,121,91,76,82,94,90,75,73,46,40},
  /* Template 26 */
  {60,61,60,63,47,56,62,56,60,62,68,73,72,69,58,59,70,86,81,78,73,69,61,74,104,105,88,71,69,67,58,61,71,98,109,103,90,85,82,73,72,60,59,62,87,92,97,86,92,100,101,87,84,61,62,53,52,55,67,61,77,107,115,111,106,87,77,70,58,61,67,62,46,65,82,104,121,121,111,91,86,80,75,82,82,73,58,62,71,84,95,105,116,104,101,87,91,95,88,81,53,73,95,105,115,106,105,103,101,105,79,60,73,108,119,113,114,118,117,111,79,75,85,102,113,109,107,93,61,55,86,101,89,76,70,69,66},
  /* Template 27 */
  {58,54,61,56,68,69,64,74,73,57,48,68,76,73,72,75,64,56,64,80,78,85,77,81,70,62,60,62,82,104,101,88,77,79,73,64,63,66,76,97,105,105,95,90,94,81,69,70,54,76,94,91,86,92,97,105,84,71,71,64,67,54,51,57,77,99,108,112,95,89,69,63,65,60,81,96,100,105,111,95,77,76,75,76,64,63,56,67,64,75,108,113,103,89,88,83,88,83,80,51,94,112,117,113,96,95,106,98,81,48,67,104,117,112,113,119,119,108,71,52,71,99,107,118,123,113,102,67,65,93,105,108,91,85,59,71,67,47,59},
  /* Template 28 */
  {66,64,63,73,58,46,68,65,60,84,81,67,64,76,70,80,81,85,69,75,85,101,95,88,76,67,62,58,77,82,105,111,97,78,73,77,61,56,63,78,96,100,92,92,98,94,74,67,59,63,60,63,70,78,73,93,115,102,85,72,66,76,68,62,61,66,103,117,117,104,85,73,67,62,62,56,57,61,80,104,104,104,84,78,74,76,70,69,68,61,62,79,101,104,114,95,84,86,91,88,65,57,71,90,115,121,110,93,93,104,96,69,61,67,73,110,122,117,117,111,112,93,69,67,88,98,112,120,118,110,83,66,64,82,106,109,98,101,90,60,54,82,86,78,67},
  /* Template 29 */
  {58,67,72,62,66,72,71,72,87,84,63,82,90,87,77,78,76,60,77,91,112,94,87,78,74,61,71,89,101,106,87,79,83,77,66,60,81,87,84,93,92,91,77,67,68,59,54,72,102,107,107,89,85,80,69,61,66,89,104,100,95,75,73,73,70,52,66,83,91,98,80,79,84,77,64,66,55,58,56,82,101,105,105,85,80,80,75,81,69,59,77,94,106,110,94,78,86,93,94,59,60,56,89,104,107,97,103,100,108,94,63,56,87,98,103,107,103,108,86,52,61,83,100,96,90,91,60,50,63,73,75,57},
  /* Template 30 */
  {52,64,71,61,60,74,86,84,77,82,84,40,64,71,95,108,93,85,77,69,68,77,98,112,109,93,84,65,75,77,101,103,87,86,66,58,36,55,80,90,97,105,79,70,74,93,99,102,87,71,70,68,66,49,80,90,82,82,77,74,73,67,61,58,83,81,80,89,79,86,79,66,54,65,89,95,97,100,86,89,83,82,72,58,84,100,105,106,94,94,92,95,94,61,59,91,105,103,109,110,101,99,86,50,65,94,103,119,115,99,101,75,73,98,105,100,99,89,57,72,70,72,67,40},
  /* Template 31 */
  {63,67,62,62,56,70,61,56,76,87,79,76,56,77,61,54,59,70,110,105,80,67,72,53,66,74,103,114,88,81,69,47,67,71,84,86,92,71,55,62,69,94,94,89,81,67,57,67,91,88,88,87,74,64,54,56,68,87,90,89,84,79,63,40,62,93,89,81,81,84,82,73,65,61,91,103,99,90,87,95,81,79,67,56,82,91,96,108,99,91,100,97,90,66,83,86,102,100,95,102,108,90,71,86,100,111,102,103,99,75,63,76,93,96,95,102,81,49,65,76,92,83,57},
  /* Template 32 */
  {54,62,72,53,54,59,66,84,80,76,69,55,63,92,97,104,93,74,54,54,87,92,105,88,73,50,60,68,85,80,85,66,57,66,79,86,96,73,68,60,65,88,95,96,89,78,69,68,72,89,89,92,74,86,76,62,65,93,86,86,75,89,96,72,61,91,97,93,75,102,110,74,71,58,65,83,104,93,79,85,95,83,86,73,58,93,87,94,95,100,105,98,71,80,96,94,95,103,93,97,72,55,93,91,95,106,101,72,62,68,76,83,78,57},
  /* Template 33 */
  {75,52,54,60,83,95,86,64,61,55,80,100,103,105,77,56,66,90,88,87,81,69,57,67,85,94,84,74,57,53,64,57,85,101,94,75,60,65,67,64,90,96,92,78,67,65,71,57,88,92,82,74,82,73,66,94,87,76,81,82,75,45,64,89,87,82,79,96,100,64,56,66,92,98,93,83,99,109,88,84,68,47,78,100,85,92,83,103,91,89,82,59,66,88,97,99,96,105,90,70,68,54,76,101,99,100,107,91,60,64,77,89,85,87,76,56,58,61,60},
  /* Template 34 */
  {66,77,82,56,69,93,90,80,61,73,101,104,105,80,57,75,76,90,74,58,61,65,86,82,57,56,77,92,89,66,77,77,58,73,88,83,66,82,75,63,75,92,89,80,83,74,56,54,74,91,100,80,80,79,71,67,58,54,66,96,97,81,68,88,75,70,63,60,60,91,99,88,74,88,86,84,80,61,59,82,90,87,92,89,97,98,93,73,61,59,101,107,105,98,99,101,98,79,63,58,95,104,102,103,94,100,78,64,70,91,93,92,91,65,64,48,36},
  /* Template 35 */
  {62,78,95,77,58,27,61,74,88,83,73,58,66,5,0,47,82,106,102,94,65,57,37,0,15,62,78,84,80,55,43,59,72,56,60,64,57,60,44,72,73,71,68,77,75,51,31,66,72,83,66,81,77,77,69,35,57,85,82,78,91,85,73,70,73,93,90,88,93,83,81,76,54,71,94,93,85,85,82,85,82,50,64,93,94,96,85,85,89,83,80,53,78,95,95,86,94,107,102,85,61,62,70,103,111,100,100,115,110,89,65,72,111,114,100,105,102,109,84,61,88,97,99,98,92,78,64,80,61,50},
  /* Template 36 */
  {56,60,55,37,15,61,56,54,72,112,121,69,57,58,76,98,59,107,120,71,50,63,67,104,100,63,74,52,62,58,80,84,44,80,78,66,65,62,66,85,90,58,92,98,74,67,67,71,80,98,103,75,75,89,71,68,78,88,96,95,98,62,67,78,73,82,84,86,90,87,67,63,83,91,92,98,94,99,100,77,62,87,88,100,108,103,98,91,79,59,58,81,90,91,105,89,105,81,93,71,67,84,113,125,105,91,99,104,95,35,63,75,116,127,118,119,118,89,80,30,61,81,102,117,111,105,113,91,95,60,93,103,107,96,109,95,85,61,97,98,99,81,66,54},
  /* Template 37 */
  {0,49,61,29,0,0,51,62,68,3,0,0,0,54,56,64,84,87,63,18,0,0,0,38,75,98,93,67,46,69,95,76,36,7,39,65,63,73,88,79,18,0,30,57,61,71,78,89,76,64,29,44,58,57,68,91,91,64,41,44,58,77,75,72,91,89,73,63,67,76,78,76,95,92,76,63,69,83,79,59,83,98,100,85,60,61,71,75,81,70,29,64,97,101,81,75,80,81,88,94,60,94,102,83,68,44,77,84,88,91,90,96,106,80,51,50,44,62,69,91,86,69,66,99,77,35,30,57,65,68,65,97,84,54,10,0,30,38,26},
  /* Template 38 */
  {55,56,49,81,84,85,53,73,88,97,50,69,84,89,57,67,68,85,82,54,46,51,73,87,84,87,80,62,54,61,61,67,90,97,82,67,64,80,77,74,86,93,67,57,69,82,78,80,83,92,75,61,49,56,69,86,87,77,88,96,102,82,59,60,61,66,65,80,82,84,76,85,105,102,82,58,73,69,93,92,95,95,71,103,105,94,63,61,74,92,96,104,94,97,112,99,83,56,74,96,93,87,97,105,97,72,58,72,77,90,86,76,62,69,54},
  /* Template 39 */
  {57,42,50,68,85,89,74,62,53,76,110,100,94,72,56,66,99,91,98,57,78,87,78,88,70,55,62,69,95,103,96,86,65,61,57,71,90,91,86,80,66,69,75,64,71,80,68,64,62,67,78,89,81,86,66,60,68,85,84,71,89,95,93,59,57,31,54,70,78,80,93,67,97,91,84,55,55,41,58,88,89,88,92,95,100,98,93,72,63,77,88,89,98,105,106,97,82,63,77,98,97,106,97,56,63,86,81,85,67,55,60},
  /* Template 40 */
  {53,46,67,48,58,67,84,61,59,97,110,93,80,64,76,100,111,99,81,73,89,77,90,83,63,52,58,83,92,102,77,66,62,66,67,64,88,88,99,95,64,75,71,73,74,85,82,82,79,49,44,69,78,68,89,104,93,79,63,60,57,61,67,96,91,78,86,101,97,84,54,63,66,73,79,81,83,81,101,93,95,80,64,80,93,91,88,100,105,93,91,65,64,78,97,88,103,122,98,100,76,54,53,73,85,101,113,99,81,56,49,80,72,87,84,59,54,43},
  /* Template 41 */
  {50,54,57,55,63,59,73,57,69,91,107,96,64,73,93,111,101,90,67,54,62,79,93,92,80,79,66,62,61,63,81,94,101,99,80,60,64,71,73,73,85,94,99,102,76,60,70,73,80,81,86,92,86,89,66,63,79,79,81,92,91,88,80,67,65,66,67,82,84,90,85,94,92,97,55,69,84,87,90,88,94,97,97,96,66,88,98,96,106,118,107,95,84,64,83,94,96,118,127,110,92,77,58,80,87,102,106,99,88,63,59,68,68,72,75,54},
  /* Template 42 */
  {63,80,95,54,62,86,97,74,70,72,78,108,59,75,61,119,125,86,60,55,77,79,91,88,91,84,68,74,73,86,99,99,95,91,57,52,77,77,75,89,95,98,98,83,63,60,72,70,82,87,90,97,86,85,70,65,59,56,70,57,55,80,91,90,87,89,70,63,56,62,82,84,61,75,84,88,55,103,64,90,97,99,93,95,98,84,99,59,84,96,98,110,126,112,94,80,62,72,94,105,136,134,107,89,64,42,69,85,94,97,94,85,66,62,51,67,66},
  /* Template 43 */
  {70,62,60,64,72,70,65,71,67,79,60,62,62,70,82,97,92,79,52,61,70,76,72,92,100,91,97,70,62,71,73,71,90,93,94,95,81,80,87,61,71,82,82,82,108,107,106,109,91,53,48,56,68,80,68,77,105,108,98,101,85,66,70,64,67,85,93,96,98,79,72,60,60,92,89,78,81,85,100,93,88,82,73,91,106,94,94,96,95,94,92,77,71,87,100,84,118,126,100,89,67,60,59,60,80,82,83,130,126,102,69,64,71,84,81,90,91,82,54,37,53,67,67,44,61,62},
  /* Template 44 */
  {65,57,73,63,57,63,64,77,65,71,75,84,97,59,69,74,83,75,85,101,96,87,69,60,69,69,69,81,90,85,86,94,84,75,65,62,68,76,78,77,99,99,103,95,69,48,64,70,64,67,78,74,81,102,107,106,84,64,73,79,75,81,85,75,79,63,95,90,72,69,87,89,87,77,90,97,95,95,75,59,74,95,104,101,94,106,104,98,103,75,56,64,88,110,91,106,125,104,89,82,61,66,74,95,104,102,111,98,70,57,67,85,91,86,84,59,53,70,61},
  /* Template 45 */
  {65,73,58,67,71,68,60,70,74,72,77,75,70,72,58,64,75,81,86,84,92,88,82,61,68,68,66,80,87,100,92,81,85,96,61,59,67,63,73,86,114,110,98,90,73,98,68,73,70,76,78,80,102,113,116,108,86,59,59,52,80,81,79,80,89,90,100,99,94,94,77,47,53,89,96,96,87,92,104,103,103,76,75,60,85,109,106,105,108,104,109,100,62,57,83,98,111,117,118,100,91,84,57,52,75,94,114,115,111,91,61,64,82,78,82,64,33,68,50},
  /* Template 46 */
  {42,46,60,52,50,66,66,63,61,66,74,64,73,81,67,51,62,70,77,76,78,73,79,81,58,66,72,84,90,90,83,79,88,64,52,59,76,68,73,97,103,102,95,80,91,60,60,66,59,74,81,70,93,110,118,100,91,78,74,59,85,83,81,84,85,90,104,106,112,99,74,50,33,91,109,98,87,97,104,103,101,97,74,58,50,57,99,108,104,104,104,104,107,87,82,54,49,47,61,100,111,118,109,113,105,85,67,54,73,101,107,96,94,84,45,57,77,78,88,73,45},
  /* Template 47 */
  {54,70,70,63,63,68,52,58,77,63,63,63,75,76,67,65,79,64,67,69,70,73,76,89,87,78,86,99,62,66,73,76,74,78,84,90,94,91,106,108,46,67,79,78,73,79,80,101,109,107,92,99,88,101,59,96,97,74,86,87,95,112,113,122,100,91,80,70,69,103,103,89,87,96,100,104,98,98,78,64,57,58,58,102,102,112,117,108,107,101,90,61,55,62,99,105,124,122,114,111,98,80,58,52,77,105,117,111,96,80,72,53,70,86,89,61,64,63},
  /* Template 48 */
  {59,62,62,60,59,56,71,37,56,67,65,63,65,72,96,54,50,64,65,68,69,73,68,94,53,61,54,62,67,69,83,83,79,73,84,83,46,58,64,67,65,64,73,76,91,101,104,94,88,99,47,60,74,80,75,73,76,90,100,113,111,105,92,75,108,71,97,96,83,89,97,97,106,130,115,107,93,71,72,57,73,101,98,100,98,100,104,109,110,105,88,72,67,53,50,74,107,115,119,117,100,105,100,89,73,51,52,95,111,125,121,93,90,79,62,66,84,99,102,75,52,58,55,46},
  /* Template 49 */
  {61,66,70,66,59,55,67,61,69,73,60,94,58,52,58,56,67,70,65,66,82,72,69,96,51,48,65,63,64,70,72,74,78,90,92,82,92,94,54,64,78,78,66,80,79,88,83,93,96,82,85,89,58,72,89,87,80,82,85,98,113,105,112,114,88,66,116,63,71,103,92,88,89,100,107,116,121,115,114,90,81,79,57,88,121,118,99,87,103,105,111,110,101,86,67,74,52,48,73,118,119,114,113,103,101,91,83,69,72,66,72,80,106,106,103,97,91,70,60,53,41,68,87,63,65,50,41},
  /* Template 50 */
  {61,55,64,92,43,54,64,60,68,69,68,60,94,56,57,51,63,72,73,78,80,74,62,78,48,64,72,73,71,72,76,82,82,85,80,68,77,78,64,78,80,90,73,81,99,101,95,98,102,96,91,98,62,71,85,92,86,74,99,97,101,116,116,116,98,99,68,84,103,107,100,93,95,104,103,122,122,106,90,81,112,63,89,114,107,110,109,106,104,102,113,102,98,82,84,76,50,74,111,122,121,108,100,92,77,83,73,75,57,54,57,84,103,109,88,90,58,45,86,78,48,55},
  /* Template 51 */
  {65,49,74,60,56,58,60,52,58,64,64,70,57,88,60,66,59,59,61,67,63,68,76,65,59,74,50,64,74,78,73,72,70,77,81,76,77,78,85,87,61,61,84,92,73,84,94,95,99,97,100,88,88,99,71,83,101,97,82,86,99,105,118,116,106,85,96,92,68,90,101,107,99,99,112,119,123,126,119,96,86,92,69,92,101,118,110,108,114,120,111,116,119,101,81,88,83,79,86,114,108,107,93,95,87,83,93,83,60,69,57,53,89,102,77,70,53,31,53,60},
  /* Template 52 */
  {55,61,56,64,68,60,68,55,68,67,67,67,60,59,69,61,70,66,60,66,73,75,73,68,61,63,54,92,78,82,74,65,71,80,79,80,83,78,68,76,90,62,76,84,88,81,85,95,100,96,98,92,78,90,97,64,62,61,90,102,96,85,93,103,120,118,118,103,104,89,98,56,51,66,91,97,101,95,93,109,119,119,123,118,105,89,95,60,85,112,112,120,113,115,109,114,115,118,106,92,98,62,69,89,112,109,110,99,89,85,96,87,75,76,84,66,77,75,71,32,26,47,58,44,56},
  /* Template 53 */
  {58,62,68,59,68,68,59,91,95,58,63,63,74,69,66,79,77,71,74,67,70,88,73,86,75,80,82,85,83,82,76,79,79,81,85,57,72,82,91,98,96,100,96,89,98,101,95,94,91,95,65,75,83,80,97,99,100,96,113,117,117,110,94,92,96,54,61,76,97,113,118,110,111,109,121,120,110,116,111,96,91,65,71,98,108,112,112,115,105,102,113,114,114,106,105,101,48,53,70,83,102,99,100,101,91,113,115,110,93,101,112,52,47,57,44,42,59,72,68,60,58,56,57},
  /* Template 54 */
  {53,66,69,75,73,68,62,72,80,73,72,77,76,69,55,48,69,79,93,75,86,101,83,81,101,100,92,82,78,67,71,82,51,65,81,98,114,114,114,105,111,115,105,97,94,94,81,78,67,74,94,137,126,121,123,116,124,125,118,119,56,78,94,92,61,66,105,123,125,133,132,125,121,131,120,125,106,90,100,97,48,52,59,77,105,122,126,118,114,128,125,137,120,107,94,105,42,53,56,61,98,104,98,98,84,76,95,128,125,112,101,125,57,74,79,65,35,14,53,69,83,79,88,90,58,65,55,48},
  /* Template 55 */
  {57,66,61,70,65,56,68,52,69,83,84,68,56,73,57,81,87,66,49,65,53,81,76,68,92,96,86,76,89,89,75,75,79,60,67,95,106,99,90,92,105,104,104,92,102,82,86,74,71,73,86,105,104,96,104,108,98,102,104,105,124,89,82,68,55,50,62,84,104,113,115,124,118,113,112,108,145,130,103,74,65,65,76,63,107,118,111,99,99,88,127,130,102,97,96,66,53,55,87,76,81,63,81,101,115,104,104,121,57,49,18,30,5,59,85,84,99,114,55},
  /* Template 56 */
  {55,59,60,55,58,70,74,75,79,60,60,58,51,50,56,62,81,83,91,82,67,61,52,66,77,84,60,60,69,68,75,79,88,92,100,92,79,79,76,68,72,68,75,60,68,89,98,100,94,96,92,99,103,100,87,101,104,90,72,66,57,64,71,98,110,117,110,109,110,110,100,105,103,98,98,71,60,57,60,49,86,107,111,107,104,104,104,102,113,114,112,109,70,71,66,63,62,86,92,91,103,108,106,115,115,99,78,57,43,60,75,81,85,95,96,101,98,88,42,0,62,75,81,93,95,70,0},
  /* Template 57 */
  {63,51,65,73,56,61,79,71,82,85,84,71,71,57,57,64,84,84,83,95,118,83,76,80,72,74,70,90,89,94,117,117,84,88,73,76,68,72,73,77,78,77,96,101,104,102,104,101,97,95,99,89,78,82,70,59,59,63,80,96,107,112,110,112,108,111,113,101,93,99,80,67,54,67,84,101,96,97,109,109,117,108,121,119,107,86,81,63,40,61,71,84,80,100,108,107,121,121,103,88,76,61,46,63,76,81,95,98,93,65,50,45,65,79,94,89,39,58,59,19},
  /* Template 58 */
  {65,59,64,65,65,78,78,78,87,63,65,64,75,86,93,95,91,84,71,61,71,77,86,82,101,100,95,101,92,87,85,77,72,68,64,52,73,90,94,101,110,108,90,97,102,93,97,83,80,92,71,51,74,83,96,112,118,110,115,117,118,109,95,80,81,67,68,62,70,71,78,102,101,119,124,132,126,117,104,89,72,75,49,50,65,80,91,108,112,121,117,101,78,67,66,65,67,98,107,106,94,73,55,68,85,82,83,84,65,58,72,77,58},
  /* Template 59 */
  {65,73,72,74,64,71,79,85,86,89,59,71,78,81,91,95,100,98,91,77,71,67,85,90,96,98,100,101,102,97,81,78,58,79,96,109,107,111,107,106,99,93,95,90,83,81,67,66,91,92,108,115,111,117,121,117,110,93,83,83,67,60,70,86,103,107,117,122,123,124,109,87,70,58,57,58,66,79,94,104,117,122,107,76,63,53,64,79,85,86,82,57,67,51,60,69,73,77,63,60,67,68,45},
  /* Template 60 */
  {73,68,61,78,68,79,80,76,94,93,59,72,81,88,79,88,106,104,90,72,63,60,85,94,105,101,90,101,105,93,81,74,59,75,103,119,116,108,105,108,94,82,79,87,47,87,93,110,116,118,127,114,109,101,90,89,77,74,66,88,101,110,122,124,120,110,110,79,76,73,61,59,82,90,106,121,119,110,74,65,58,58,81,93,101,95,71,63,45,66,76,77,67,30,66,77,57,53},
  /* Template 61 */
  {57,70,74,56,68,78,80,72,80,63,74,79,87,87,83,74,77,57,60,76,85,95,94,93,81,97,96,60,83,97,110,112,108,93,101,95,71,58,55,88,100,114,115,116,110,101,88,77,75,63,79,102,113,124,126,115,102,84,87,88,65,68,53,73,84,106,124,124,122,98,87,86,70,69,64,79,98,117,116,115,92,83,64,64,59,78,92,92,92,76,81,63,70,77,79,77,66,53,72,66,36,41},
  /* Template 62 */
  {64,68,73,76,72,83,80,74,73,72,69,80,86,77,76,80,87,80,80,103,105,99,87,96,95,97,80,98,103,93,107,107,101,97,82,73,74,56,71,90,100,115,118,108,97,88,78,78,51,68,101,113,119,117,114,99,80,80,82,61,70,91,105,115,120,119,91,93,81,75,62,58,79,98,119,125,112,92,71,60,58,52,77,96,103,102,82,80,58,66,75,82,83,68,80,72,67,52,57,57},
  /* Template 63 */
  {68,67,67,84,72,50,68,75,71,78,80,86,79,85,65,78,95,95,88,87,96,93,85,76,70,60,70,93,103,106,101,100,101,100,84,70,65,51,89,104,109,113,112,104,104,84,61,60,67,86,93,110,110,108,96,83,71,75,59,74,91,104,123,119,94,76,77,82,94,117,120,108,88,90,86,63,67,86,98,104,103,95,87,76,70,83,85,99,94,80,66,61,70,78,63,71,72,65,60,55},
  /* Template 64 */
  {58,74,78,90,89,85,57,86,85,75,89,96,94,86,57,98,97,96,97,105,100,91,68,48,86,99,103,110,107,106,96,82,74,85,103,114,120,104,101,77,70,97,115,115,110,99,72,70,71,79,92,100,118,113,91,84,85,67,92,116,117,105,90,90,77,60,81,108,105,101,98,91,65,73,83,89,95,98,82,53,62,80,77,79,76,53,68,53},
  /* Template 65 */
  {70,65,73,74,88,90,85,56,82,86,88,85,97,99,92,56,85,100,99,93,102,99,84,79,71,103,102,108,111,95,81,80,69,87,109,115,113,98,83,77,66,88,103,107,104,89,81,82,73,55,81,96,95,103,95,96,88,74,91,98,111,97,95,93,57,75,98,104,107,107,95,70,56,77,98,111,109,83,58,60,63,63,79,68,46,60,37},
  /* Template 66 */
  {68,69,75,49,79,89,90,91,97,88,87,72,42,51,83,98,88,82,96,88,89,74,54,51,85,97,95,96,100,89,86,81,65,61,71,99,102,108,105,90,87,82,63,62,81,110,115,113,95,76,79,65,55,61,93,99,104,88,76,78,78,66,66,83,101,92,95,100,92,79,64,85,90,100,103,102,101,85,69,94,103,109,104,111,98,66,71,79,95,110,118,92,69,48,67,73,85,99,61,43,75,57,65,58,32,77,63},
  /* Template 67 */
  {62,74,79,74,68,79,84,89,94,95,63,94,96,89,89,101,93,71,58,73,102,94,106,101,92,93,76,46,69,99,101,116,114,91,88,86,65,80,94,113,115,93,86,82,75,62,83,105,108,94,79,83,78,55,65,65,92,112,103,90,98,85,71,66,80,104,103,97,99,92,76,55,74,83,93,96,105,102,80,50,60,67,88,91,102,100,71,68,57,57,69,80,72,62,68,62,54,64,66,74,63},
  /* Template 68 */
  {65,65,76,81,80,90,95,93,88,81,87,74,79,86,98,85,86,76,82,75,52,67,85,93,88,97,92,82,77,48,52,76,99,95,102,88,91,97,69,43,80,100,103,103,81,101,105,68,67,72,79,93,96,72,72,70,70,56,70,104,106,91,95,95,80,63,57,68,82,93,95,98,101,84,62,58,70,68,88,99,102,99,96,85,63,70,68,92,91,90,94,82,60,55,82,80,72,82,70,56,69,49,55,69,49,59},
  /* Template 69 */
  {61,71,61,65,82,77,77,41,82,87,76,80,79,76,70,64,84,84,72,85,77,86,69,61,93,100,91,91,79,82,70,48,62,92,110,99,86,79,80,78,65,81,98,98,88,69,92,93,56,63,80,93,90,74,86,90,56,62,63,79,99,93,84,93,88,74,66,75,86,82,85,95,82,79,72,57,65,63,88,98,91,81,78,78,69,72,87,98,93,91,80,86,68,78,101,96,84,78,72,63,72,68,80,79,61,62,61,79,54},
  /* Template 70 */
  {65,75,77,69,76,68,82,85,81,83,80,65,77,81,88,83,90,91,75,57,60,81,95,97,84,85,90,83,70,62,83,108,102,87,88,89,79,52,79,107,96,85,77,89,89,60,72,90,85,84,71,83,86,62,64,91,94,88,86,88,60,57,65,74,84,89,91,90,76,68,57,68,75,69,98,99,82,76,83,70,59,64,61,95,106,103,91,87,95,58,64,81,91,95,94,87,94,57,70,72,67,79,80,76,74,56,64,64,46,62},
  /* Template 71 */
  {71,62,71,70,68,75,77,80,87,85,78,68,58,81,78,89,84,93,79,62,60,84,100,100,86,89,82,74,71,65,64,114,114,103,93,98,92,81,73,63,116,116,99,89,105,104,68,71,92,98,96,82,95,83,69,52,70,95,94,83,91,80,69,74,65,61,83,83,95,96,88,73,80,64,57,74,87,105,104,96,86,83,79,47,76,79,108,111,101,96,97,29,77,89,115,114,108,99,93,36,51,85,94,117,103,101,88,70,55,69,60,73,61,48,55,55}
};


static int Upper[] = {
  /* Template 0 */
  {112,122,121,115,111,99,108,118,120,123,122,112,99,110,129,131,132,128,126,128,113,86,93,115,130,137,147,139,135,132,121,85,95,129,145,150,148,138,148,147,135,97,96,127,152,151,139,128,154,153,140,96,108,143,161,151,144,117,144,152,149,103,107,132,153,147,127,122,124,146,133,103,99,127,144,136,127,130,129,128,127,106,99,124,151,147,138,145,144,154,143,112,114,132,147,158,160,162,159,164,162,155,162,166,174,177,175,172,174,173,139,161,163,167,178,175,169,174,170,93,123,135,137,153,151,137,131,135,88,98,105,97,86},
  /* Template 1 */
  {107,101,100,130,122,104,107,106,131,130,91,85,102,114,117,114,119,117,99,98,104,110,122,123,123,132,126,100,93,106,109,120,131,133,138,135,133,113,98,104,115,123,143,144,154,147,113,90,94,111,124,121,119,126,155,153,104,89,91,103,123,124,110,124,145,130,98,86,99,102,115,116,128,127,130,125,89,96,105,112,122,135,134,130,118,88,103,115,124,131,138,149,138,112,93,123,128,126,131,147,147,134,103,94,134,132,132,132,141,137,125,120,113,127,129,121,133,131,138,129,118,127,121,97,97,107,94,99,99,116,124,91},
  /* Template 2 */
  {92,93,94,111,112,93,89,99,107,104,121,120,100,86,102,113,121,116,116,116,110,91,91,110,112,119,118,121,121,114,92,91,91,106,116,120,119,126,125,113,95,104,110,122,126,129,130,123,110,90,105,120,114,111,137,142,128,112,102,116,112,107,131,141,119,91,96,101,110,112,111,120,126,119,91,85,94,107,114,120,118,120,120,107,88,98,106,122,124,129,131,123,107,105,89,117,116,119,129,136,137,131,114,104,123,116,115,124,131,133,129,112,86,115,108,106,119,120,129,127,117,107,88,106,101,110,113,96,86},
  /* Template 3 */
  {95,99,94,87,91,105,108,98,106,101,100,86,104,106,105,109,112,118,114,97,120,122,112,120,123,123,117,97,128,128,114,129,135,116,99,89,102,128,127,128,127,127,116,90,96,115,119,124,132,132,133,118,87,94,121,126,115,127,129,126,106,88,94,115,117,107,120,122,111,83,90,107,125,128,121,122,125,121,87,100,113,129,135,130,129,107,93,106,107,123,133,141,140,135,105,103,119,106,116,118,132,135,126,104,94,97,94,105,113,116,116,110,95,107,102,95,110,101,93,100},
  /* Template 4 */
  {96,97,87,92,101,106,104,105,97,93,91,94,106,116,115,111,116,124,119,96,96,111,115,114,113,117,129,133,108,88,103,125,119,121,126,142,131,123,97,94,104,127,127,120,132,144,141,109,94,96,124,132,115,118,137,141,136,97,96,127,138,122,122,129,130,120,92,96,119,128,119,126,128,121,104,91,98,114,123,128,125,128,126,113,95,94,98,99,118,139,138,127,129,113,103,109,107,109,124,134,137,135,130,115,104,106,101,107,127,129,125,130,121,108,98,96,114,110,107,108,99,90,94,94,118,123,114,117,119},
  /* Template 5 */
  {94,95,90,88,92,94,92,89,90,103,101,102,97,88,96,108,116,109,108,114,109,92,87,105,113,115,108,114,125,128,114,87,100,115,124,122,119,133,129,127,114,93,105,124,136,131,126,140,140,118,99,82,96,123,132,134,129,131,139,135,114,86,93,121,133,127,125,130,130,122,100,91,100,119,122,117,135,128,121,106,85,92,98,118,124,127,123,137,129,109,94,102,97,105,123,133,130,125,126,117,98,109,98,112,127,131,131,130,121,107,89,96,91,109,131,136,127,124,113,102,86,95,122,138,127,112,94,106,105,102,114,114,106,114,108},
  /* Template 6 */
  {92,90,89,98,97,99,97,87,88,100,105,107,110,113,106,89,92,108,115,116,109,111,111,97,85,91,105,118,126,125,117,125,124,119,101,86,94,111,132,147,145,129,142,138,119,101,89,93,98,115,132,145,143,139,143,137,120,96,88,93,102,111,122,127,141,141,140,132,113,88,89,99,104,102,109,126,144,140,132,112,93,95,103,112,115,112,134,140,135,115,92,119,122,116,99,107,118,125,128,137,136,124,107,124,129,120,100,113,127,131,140,141,126,115,93,94,115,103,97,109,137,140,134,134,115,96,98,129,136,123,115,99,110,111,101,98,91,90,95,89,87,87},
  /* Template 7 */
  {91,88,98,101,100,98,94,87,89,98,106,107,108,115,115,92,90,96,103,117,117,113,113,114,97,86,93,100,120,131,131,115,121,124,115,106,95,98,105,132,152,156,133,141,142,124,117,89,91,98,116,127,148,147,140,144,144,128,105,94,88,98,104,114,120,126,141,145,143,139,121,97,88,91,91,103,107,108,110,129,147,145,138,122,93,108,127,106,101,110,113,116,116,140,141,137,120,99,98,134,138,116,102,115,121,128,141,139,137,127,108,115,126,113,99,118,129,132,149,148,125,119,98,96,113,134,132,142,129,115,94,109,130,128,121,109,91,105,95,101,96,91,94,94,88,89},
  /* Template 8 */
  {92,97,94,91,102,105,104,99,100,96,91,112,122,114,110,109,106,91,87,86,100,111,122,119,113,113,117,114,99,88,99,107,119,144,154,137,133,131,122,114,92,100,110,115,154,155,138,143,143,128,123,89,95,98,113,118,150,150,144,138,140,127,102,87,85,99,95,95,100,103,112,115,130,155,149,137,124,102,92,132,140,110,100,109,117,115,119,144,158,154,126,107,92,142,145,122,105,119,119,120,138,145,141,123,109,93,109,105,90,103,119,121,132,148,146,121,101,91,95,110,128,132,135,128,105,110,122,126,120,100,84,92,101,93,95,88,99,99},
  /* Template 9 */
  {87,92,98,101,97,91,88,100,107,103,101,95,93,98,107,108,107,102,99,101,112,117,116,110,106,106,96,86,84,90,104,119,128,147,132,124,127,122,108,93,86,91,99,109,141,157,144,154,159,143,138,100,92,94,93,96,103,114,145,154,147,148,148,138,119,99,93,102,96,101,101,103,112,116,130,149,150,144,128,116,99,144,137,114,104,115,113,119,130,150,152,145,130,108,90,142,135,106,105,112,117,127,148,153,145,121,110,86,89,95,98,111,124,137,151,147,126,113,86,89,94,114,125,129,135,123,113,98,114,122,123,114,106,95,97,96,97,90,92},
  /* Template 10 */
  {89,88,89,87,95,95,97,97,95,90,93,102,102,107,105,100,95,100,111,114,111,108,106,103,94,95,92,106,114,121,130,123,121,120,112,99,87,97,97,95,104,111,126,134,129,147,152,131,125,96,89,108,96,100,99,93,104,125,137,135,136,148,153,142,131,96,90,127,108,98,108,114,116,125,135,139,149,148,141,126,107,92,144,132,105,107,116,119,125,132,155,154,149,136,123,102,86,88,119,111,104,107,113,120,142,155,158,152,128,116,101,102,106,107,115,131,150,156,151,124,105,96,90,99,116,131,131,138,125,101,100,107,122,119,108,93,86,93,96,96,88,84,89,92},
  /* Template 11 */
  {83,82,85,90,96,103,103,95,93,97,103,106,112,105,93,87,98,111,113,113,114,103,92,90,97,99,120,130,129,124,121,108,103,90,92,96,99,107,126,137,133,125,138,130,117,101,136,126,103,95,96,97,104,121,131,132,127,146,149,137,123,107,137,137,109,101,106,112,118,119,131,139,139,146,147,135,117,91,116,110,87,103,109,112,127,135,152,151,141,139,133,116,91,94,103,106,112,129,145,156,157,149,127,124,99,92,90,99,100,119,133,148,151,135,120,107,89,105,117,129,132,123,110,96,110,109,112,103,92,105,114,103,93,89,94},
  /* Template 12 */
  {86,89,95,97,99,83,98,108,110,110,105,90,91,101,108,105,107,103,94,89,87,101,113,121,128,122,123,112,92,91,97,87,95,99,106,105,124,131,134,126,128,115,108,95,141,143,103,88,100,108,108,113,129,137,130,131,145,132,120,99,124,116,86,97,109,109,110,117,134,139,135,151,153,133,121,100,94,107,109,114,114,118,142,154,149,137,135,134,127,112,92,107,107,98,119,134,155,162,154,145,133,125,109,88,89,94,125,140,152,151,132,114,99,90,101,117,124,127,120,98,87,115,115,111,107,91,113,108,104,90},
  /* Template 13 */
  {95,98,98,105,107,99,85,91,98,105,109,110,107,97,85,90,93,104,107,104,110,105,102,119,120,108,99,95,91,94,99,113,118,115,117,125,117,87,93,142,139,124,104,102,104,98,109,120,137,141,129,130,122,103,97,96,134,131,115,104,109,106,104,108,121,140,141,133,141,136,129,109,99,106,94,103,113,117,126,124,122,138,143,140,148,152,144,130,110,94,88,110,114,109,116,124,130,144,161,152,144,142,141,126,121,94,100,105,111,124,132,148,155,161,153,128,120,109,101,96,93,104,119,132,145,150,132,122,98,88,89,107,111,130,133,127,103,92,119,115,101,99,92,109,101},
  /* Template 14 */
  {89,89,97,100,94,88,96,99,100,107,110,100,96,89,102,102,92,94,85,95,97,98,107,106,98,96,95,99,139,145,125,102,105,99,99,98,104,121,117,118,110,110,95,93,91,105,146,146,123,101,104,105,105,109,115,136,135,134,128,120,107,104,102,116,115,100,115,106,112,113,115,119,138,138,135,137,131,130,121,95,118,125,110,122,123,120,129,135,132,141,143,137,134,119,104,113,112,114,127,139,142,150,151,139,139,140,135,128,107,92,93,109,120,146,155,156,152,147,134,134,124,129,105,91,102,133,150,153,143,127,124,103,109,90,90,112,128,138,141,123,103,96,99,119,126,113,95,92},
  /* Template 15 */
  {88,92,98,95,89,87,90,93,102,109,101,93,93,88,110,127,100,106,104,92,95,99,103,107,111,97,98,94,145,145,114,113,112,98,100,106,108,112,119,114,111,109,95,88,87,124,145,106,109,112,108,109,110,117,137,140,134,121,124,118,110,102,95,105,99,110,110,117,127,126,121,140,140,139,127,132,130,119,108,91,98,110,114,129,131,132,126,129,130,141,147,149,140,122,90,94,104,130,139,143,150,152,142,137,138,149,155,147,123,91,107,122,134,148,143,148,150,147,137,137,135,142,125,96,95,121,128,133,133,136,133,117,116,117,105,94,90,116,135,126,112,109,106,89,90,119,128,131,98,93,103},
  /* Template 16 */
  {87,90,93,94,92,91,103,93,92,89,88,94,97,106,112,103,102,92,111,130,116,115,114,95,95,98,103,112,111,106,106,92,110,121,119,122,116,111,99,106,108,112,117,108,105,101,96,87,102,109,109,109,113,113,111,109,118,131,130,122,115,116,109,103,93,89,96,96,105,111,125,127,126,129,131,132,131,128,127,128,126,116,89,89,91,108,123,127,138,140,138,138,138,142,142,144,143,136,120,93,105,123,138,151,153,152,148,141,140,147,147,149,146,136,110,91,108,126,137,155,155,149,147,139,137,143,145,145,127,108,97,127,128,127,133,138,137,133,127,125,124,128,109,98,111,142,139,124,111,114,113,100,94,86,100,129,133,98},
  /* Template 17 */
  {95,95,84,86,86,91,116,119,123,120,99,104,103,107,111,106,99,106,99,106,125,131,148,141,104,105,108,106,112,103,104,105,101,86,94,116,119,142,118,101,118,112,105,113,111,108,103,101,95,91,84,98,109,113,110,111,122,117,114,126,133,121,120,118,112,106,94,96,97,101,112,121,127,127,128,137,143,142,127,130,136,145,129,94,113,124,143,148,143,152,146,146,148,147,146,142,157,159,141,102,123,135,152,164,167,169,167,157,158,157,162,160,153,151,107,122,133,143,159,169,171,169,160,160,165,164,160,144,115,128,150,146,131,144,152,153,154,144,148,153,146,140,120,88,126,148,149,124,123,125,124,117,115,122,123,121,107,97,111,102},
  /* Template 18 */
  {102,124,142,124,111,107,108,109,107,113,99,99,89,94,106,127,136,124,111,110,111,118,113,115,114,113,110,99,94,117,124,113,96,106,112,117,112,116,114,113,105,103,102,101,110,117,111,119,114,114,116,112,129,126,126,121,124,111,94,101,109,118,132,131,130,143,141,140,142,153,135,124,126,130,113,103,117,137,150,152,151,147,152,159,155,152,147,134,169,161,127,105,129,142,158,162,174,160,156,160,165,164,165,164,169,162,131,135,143,148,163,163,175,168,165,164,165,180,189,172,151,132,114,154,158,149,166,169,166,164,163,162,154,156,167,144,121,96,96,135,156,132,136,144,130,128,128,136,128,128,118,116,93,82},
  /* Template 19 */
  {111,124,119,96,86,89,123,136,134,107,95,99,107,109,106,100,92,85,129,131,122,101,96,97,111,110,109,107,98,91,93,89,124,133,113,99,107,104,106,107,102,104,99,98,101,91,99,104,107,118,122,118,122,117,120,122,117,110,115,120,110,86,108,121,129,129,127,127,132,134,134,132,139,127,122,130,130,104,107,123,139,147,144,147,150,149,148,135,137,132,133,146,145,126,112,123,132,145,148,153,157,159,151,147,142,146,154,156,149,122,135,142,144,138,146,146,161,167,161,151,148,147,156,152,127,103,128,143,146,142,136,145,162,167,163,143,139,135,141,129,99,91,95,93,94,114,114,105,95,101,111,115,92,96},
  /* Template 20 */
  {93,128,124,90,88,91,106,134,123,88,87,91,88,88,93,92,92,116,140,130,93,104,105,97,97,105,104,93,119,138,127,107,109,108,100,100,102,105,101,92,95,93,94,112,126,116,113,114,120,112,115,112,108,105,112,115,104,123,126,129,120,123,136,138,125,121,126,128,116,126,129,115,95,122,134,131,126,145,153,154,145,135,130,133,124,134,136,128,110,89,127,142,133,131,147,153,160,149,141,148,136,131,142,143,133,113,89,143,138,136,125,125,142,144,145,144,144,146,140,139,150,149,126,100,85,100,109,114,100,115,135,130,136,140,138,140,136,139,144,125,103,93,104,106,102,112,121,118,107,86},
  /* Template 21 */
  {91,103,107,91,88,86,89,113,119,98,93,91,95,125,126,100,100,100,91,95,90,103,141,140,99,108,109,98,94,100,99,94,91,86,99,129,120,106,110,110,105,100,100,101,96,95,96,105,131,136,124,117,119,121,112,106,110,109,104,110,110,102,90,107,138,137,123,131,133,132,121,115,116,117,111,121,121,109,91,85,119,144,135,125,149,156,153,144,139,122,119,116,121,124,114,89,103,124,144,136,124,144,153,156,148,147,139,132,128,138,138,132,113,108,135,122,109,126,133,142,144,144,142,135,143,150,143,132,108,101,116,121,123,124,131,131,148,153,143,120,87,94,108,114,119,129,144,123,90,98,103,103},
  /* Template 22 */
  {87,96,98,98,86,88,91,84,93,108,110,95,93,93,94,133,143,118,101,96,93,88,89,87,85,96,140,147,122,103,107,104,96,100,99,95,86,89,103,115,129,106,109,109,106,106,105,101,94,93,90,89,102,130,133,121,122,119,120,115,111,110,99,90,101,102,94,105,150,147,126,131,138,138,122,119,116,115,110,113,116,104,111,127,142,141,131,152,162,162,138,134,125,120,118,123,122,111,116,131,136,125,125,148,166,165,147,140,133,122,120,131,132,125,110,126,107,108,124,137,145,140,139,140,146,142,135,137,123,90,104,124,136,136,139,146,144,137,135,125,90,98,101,117,122,132,131,120,104,101,115,109},
  /* Template 23 */
  {84,102,114,93,113,117,102,91,96,92,92,92,113,105,99,93,89,90,122,141,131,104,99,93,87,94,92,95,118,138,126,102,99,98,93,101,108,107,88,91,115,129,117,100,106,107,105,100,99,110,111,94,93,107,144,141,127,113,124,122,118,107,95,98,92,95,98,86,107,130,155,146,130,132,136,142,127,113,109,103,108,113,112,98,108,129,136,128,130,146,157,163,142,135,125,116,120,124,116,102,99,125,124,114,125,145,159,167,147,138,133,117,118,133,133,115,92,89,98,117,122,136,137,139,137,133,128,137,136,123,97,96,121,136,141,136,140,142,141,139,119,100,108,124,123,139,144,141,129,110,97,127,135,127,97,94},
  /* Template 24 */
  {112,106,92,90,88,103,119,108,96,97,92,98,131,126,101,100,90,87,95,118,128,110,100,100,91,91,94,89,119,139,133,112,110,108,104,105,100,92,86,108,152,157,125,119,119,117,126,122,114,104,101,92,88,102,133,157,156,123,136,149,137,131,123,115,105,95,103,111,96,108,132,145,126,123,142,157,159,141,128,124,119,105,113,119,109,95,93,94,112,134,153,154,137,136,136,127,113,126,122,114,107,121,127,135,140,141,135,132,141,134,121,101,88,90,106,119,133,141,139,142,149,145,123,102,90,90,109,132,131,139,146,128,105,108,136,142,128,98,116,133,101},
  /* Template 25 */
  {83,97,93,90,91,97,102,98,88,100,100,99,98,98,92,89,89,113,132,131,109,101,103,101,90,87,101,135,144,135,114,111,111,110,107,90,91,89,97,120,146,151,130,128,126,121,126,117,97,94,94,90,95,120,133,132,124,140,149,138,129,121,112,104,97,96,88,83,98,107,99,122,135,153,157,138,124,116,108,105,101,108,100,102,127,139,152,140,136,130,119,116,118,122,117,88,111,120,137,144,141,136,128,139,134,115,91,110,128,139,141,139,148,147,141,116,104,127,133,140,148,146,128,106,113,130,132,126,107,110,119},
  /* Template 26 */
  {86,86,88,87,104,97,90,93,90,95,99,101,104,92,87,95,109,115,113,106,103,90,88,106,134,132,116,104,104,101,90,89,102,127,144,133,112,114,116,109,97,93,88,90,113,131,133,114,128,129,130,121,112,100,86,91,90,119,129,114,121,133,141,150,125,114,103,95,96,97,91,85,97,93,112,130,147,149,132,121,109,103,104,106,108,100,86,85,98,118,133,138,130,134,127,119,114,117,122,112,88,104,121,130,145,144,133,133,137,134,119,94,111,127,141,142,137,140,142,134,111,100,120,134,136,142,140,120,99,106,124,122,127,121,105,106,103},
  /* Template 27 */
  {89,92,91,92,94,96,94,102,98,86,98,108,103,104,106,100,92,87,102,123,132,120,112,100,93,87,89,96,113,134,138,128,113,109,100,91,86,87,111,127,134,130,117,118,120,117,108,90,89,111,130,128,121,134,138,137,127,109,103,97,88,89,114,105,121,136,145,143,133,115,104,104,95,94,103,122,142,142,139,126,109,110,106,104,101,95,88,91,103,122,136,139,142,135,119,115,114,115,106,108,127,135,146,140,123,128,140,128,115,94,116,132,147,142,138,142,149,141,122,89,110,128,139,146,141,148,137,112,107,137,141,139,127,118,92,102,117,109,96},
  /* Template 28 */
  {89,102,97,91,101,94,98,104,99,104,115,107,95,106,114,106,108,106,99,98,122,138,131,112,105,96,89,92,107,123,135,144,133,116,114,103,99,87,99,108,125,125,130,122,126,125,112,114,109,90,91,92,110,99,136,143,139,142,124,118,109,95,92,85,92,127,140,145,145,131,111,106,101,97,91,87,87,103,122,134,137,135,120,104,104,104,100,99,91,90,95,118,137,137,134,134,114,118,119,122,105,92,108,132,137,139,142,127,128,130,123,108,92,94,120,138,142,140,143,146,151,131,102,90,108,127,138,149,149,151,134,99,94,117,126,136,141,126,118,88,93,111,115,102,100},
  /* Template 29 */
  {86,108,99,89,99,103,100,108,121,117,98,113,126,125,112,109,101,93,110,131,142,141,112,104,96,86,94,122,128,140,134,110,110,102,97,85,118,120,118,128,125,124,112,115,106,86,91,128,137,135,137,117,115,109,96,91,105,125,130,137,121,111,102,99,91,91,102,117,131,129,121,110,107,102,98,93,90,88,90,115,126,128,129,123,124,114,111,108,95,88,105,123,134,139,130,123,122,123,120,105,87,88,118,130,140,139,142,138,134,124,103,87,117,127,138,145,143,136,126,90,90,128,127,130,133,123,112,106,109,100,102,103},
  /* Template 30 */
  {93,98,100,112,95,110,117,119,109,112,116,100,86,99,118,141,149,127,109,102,88,109,125,138,147,124,106,93,114,127,129,121,113,114,105,90,101,107,114,137,129,129,117,98,113,137,129,125,118,106,96,97,89,94,115,119,122,118,101,104,106,98,86,94,119,125,124,113,111,115,103,97,90,88,120,124,128,129,122,125,112,118,116,95,112,123,134,136,125,117,115,131,124,102,93,117,128,134,139,133,134,128,128,100,95,123,132,142,141,141,134,113,119,131,126,128,126,120,99,110,110,112,108,104},
  /* Template 31 */
  {89,90,90,103,96,99,94,100,118,120,123,107,107,106,100,92,109,128,143,149,132,107,96,91,110,129,145,145,118,103,89,98,105,117,116,116,113,103,93,85,106,121,125,126,109,92,87,106,117,125,126,119,112,100,91,87,104,114,114,119,110,106,111,97,94,120,124,123,106,125,125,108,92,92,116,126,128,120,135,137,114,106,93,89,113,137,138,126,116,131,122,127,113,91,132,137,130,134,127,134,127,113,111,125,132,133,140,143,121,108,85,116,125,131,130,133,117,95,111,108,110,119,98},
  /* Template 32 */
  {91,89,99,94,91,89,109,118,134,131,96,94,96,125,135,145,139,107,99,96,124,133,135,129,109,98,89,102,115,121,113,100,89,89,125,128,119,107,99,96,86,114,119,117,108,98,98,92,100,114,117,116,104,107,112,93,98,120,121,120,107,127,127,104,100,115,122,125,117,135,135,114,101,93,86,114,126,129,121,128,134,120,112,102,95,119,125,130,125,130,130,126,109,111,130,137,131,135,139,126,99,108,127,131,126,128,131,115,106,117,111,110,114,88},
  /* Template 33 */
  {126,99,101,125,127,128,129,106,94,102,132,130,136,138,111,91,124,124,127,124,105,91,88,92,115,122,118,96,89,97,88,93,125,126,122,98,105,108,96,92,113,118,117,106,113,109,92,103,119,113,111,114,111,98,103,123,121,116,108,121,116,97,119,127,121,122,116,132,127,110,94,98,120,133,128,122,133,128,125,114,98,94,108,130,132,128,123,125,131,126,108,93,92,119,136,139,130,136,138,133,106,88,111,134,136,132,135,136,123,90,110,114,120,126,118,91,90,97,90},
  /* Template 34 */
  {105,124,127,112,119,134,126,127,117,128,145,142,131,121,88,125,135,120,112,89,84,114,118,111,100,93,119,122,112,99,97,103,96,117,118,114,106,108,106,94,98,121,119,110,112,112,102,96,100,127,122,112,103,111,105,101,95,90,104,123,120,111,105,116,119,102,96,90,95,122,120,121,107,123,130,124,106,96,87,113,125,124,119,123,130,128,126,110,84,105,130,137,137,133,131,132,125,106,84,103,130,141,139,135,134,128,111,84,113,118,127,133,128,109,96,104,95},
  /* Template 35 */
  {95,106,120,116,88,106,92,127,140,133,119,88,125,135,122,94,138,146,142,123,91,91,120,130,107,102,128,122,111,99,99,105,105,96,88,92,90,103,114,106,112,102,95,103,100,110,121,106,119,109,99,106,105,99,94,98,93,111,115,111,110,108,98,96,102,110,110,111,113,117,117,115,100,112,123,120,112,115,116,116,115,102,94,122,122,117,113,121,121,117,101,91,118,123,123,123,128,135,135,119,85,91,135,143,139,129,133,139,141,128,89,134,138,136,135,137,139,134,117,103,119,121,127,134,131,111,101,104,123,119},
  /* Template 36 */
  {92,98,113,130,121,88,101,88,115,141,154,128,91,91,120,136,114,146,154,141,101,83,97,129,142,112,115,111,84,89,116,125,93,103,108,82,92,88,94,114,125,94,118,122,106,103,97,96,109,131,141,99,106,116,109,108,117,114,114,124,130,89,90,111,112,116,124,122,114,113,96,88,113,117,136,134,122,120,118,105,96,115,124,137,137,126,123,132,115,87,91,99,129,135,141,156,149,140,138,117,103,118,142,144,142,156,151,146,151,128,104,129,164,165,160,156,156,164,166,144,96,117,156,161,170,174,164,162,157,89,121,139,154,165,153,142,122,119,139,140,134,122,94,93},
  /* Template 37 */
  {113,99,98,104,114,111,102,101,96,122,145,143,110,88,96,115,128,123,103,110,144,139,112,110,121,131,134,107,100,117,119,123,95,108,98,89,97,111,114,108,105,118,107,98,92,101,114,116,128,117,106,103,100,105,109,115,120,127,112,105,107,106,113,112,113,118,108,107,114,126,125,116,114,119,114,93,111,120,129,130,123,124,128,116,87,97,109,125,127,135,141,139,129,128,113,104,126,150,148,136,143,144,137,133,107,94,101,134,157,155,150,149,148,153,145,114,96,90,119,142,151,158,162,152,150,146,110,115,135,148,152,140,129,113,119,130,130,125,98},
  /* Template 38 */
  {105,87,97,103,117,118,100,120,130,129,96,120,127,125,88,98,113,118,119,105,97,91,100,114,117,120,114,84,90,96,94,103,117,120,118,106,94,102,106,102,112,122,115,95,101,111,113,112,115,124,119,85,91,94,100,116,117,105,122,130,125,117,91,87,93,98,109,111,117,118,109,127,128,127,114,94,95,110,129,134,126,121,133,136,126,119,97,91,102,128,137,133,129,141,143,134,116,98,100,125,130,139,141,139,125,110,100,113,134,133,129,112,93,96,89},
  /* Template 39 */
  {88,95,98,104,120,111,106,95,97,119,137,130,121,104,92,114,131,124,116,95,99,119,130,116,109,96,86,94,115,122,134,127,101,93,92,101,117,117,124,113,91,101,101,109,109,108,109,88,112,118,108,111,122,120,111,90,95,123,130,114,121,122,117,112,94,96,98,103,103,119,122,109,122,128,121,109,89,95,100,116,124,117,114,127,127,128,120,92,86,113,124,119,127,132,132,129,114,113,119,126,136,133,121,95,106,122,131,128,91,96,96},
  /* Template 40 */
  {98,94,96,97,101,121,107,89,117,146,142,121,107,94,109,138,141,134,119,106,109,128,119,121,100,89,98,116,129,134,133,108,88,88,99,103,115,128,124,122,97,99,108,107,113,115,113,113,102,92,99,111,123,117,123,123,115,107,84,89,91,94,110,131,137,116,122,124,120,113,89,90,89,101,108,123,131,121,121,130,130,114,96,108,116,119,123,152,131,129,126,94,90,109,125,127,142,158,154,124,111,92,90,118,128,137,142,130,121,96,94,113,122,123,117,105,94,94},
  /* Template 41 */
  {103,110,97,104,113,101,102,97,102,127,138,128,94,103,131,139,133,121,100,95,108,112,118,118,125,121,92,88,90,101,117,123,127,128,111,106,88,94,98,107,119,126,127,125,104,85,100,103,105,112,118,117,120,114,97,99,110,118,112,118,120,120,112,92,84,85,99,106,126,130,115,121,122,120,87,92,110,121,120,125,122,126,124,123,95,114,124,124,138,151,137,123,120,90,110,124,129,148,155,144,121,97,91,118,129,134,139,124,115,86,101,119,118,118,114,98},
  /* Template 42 */
  {90,114,112,93,88,118,116,104,91,100,112,131,88,93,117,140,139,125,88,92,112,116,117,121,124,127,89,93,99,123,124,121,129,118,117,95,99,103,105,119,127,124,125,116,94,90,104,104,107,117,121,123,121,124,106,83,88,90,100,119,122,117,120,119,122,111,105,85,87,92,104,111,124,123,118,124,126,119,97,118,126,119,115,120,131,128,124,92,123,128,129,153,156,136,125,119,84,111,126,129,147,154,131,116,94,102,125,120,130,126,123,105,113,110,105,109,109},
  /* Template 43 */
  {92,103,95,104,111,102,93,101,105,117,85,100,103,111,131,135,125,109,98,95,104,112,113,116,130,129,127,94,95,102,102,105,119,130,126,119,104,118,125,91,96,103,103,105,136,142,131,124,111,98,93,91,101,101,104,111,134,139,131,127,116,88,101,113,113,111,118,120,118,119,114,99,96,114,116,116,122,114,125,121,121,114,100,126,128,118,125,123,125,121,119,114,94,129,135,131,158,155,127,118,109,88,87,88,110,132,131,154,153,137,112,89,101,120,116,124,133,128,96,108,109,102,112,101,87,86},
  /* Template 44 */
  {94,98,104,100,90,100,99,97,91,100,100,116,139,90,91,97,110,110,113,137,135,115,96,85,98,101,104,119,130,132,121,115,123,128,110,95,107,108,110,132,143,147,133,117,110,118,88,96,100,107,103,112,136,148,149,132,117,92,111,110,111,114,112,121,128,139,124,119,102,100,124,122,116,118,122,130,130,128,120,95,100,131,133,131,141,132,133,132,129,110,88,91,126,133,152,159,150,136,132,122,96,89,109,125,141,156,148,131,110,92,92,106,112,122,121,110,89,101,98},
  /* Template 45 */
  {95,98,100,103,93,93,90,93,101,100,101,117,121,95,86,90,95,111,108,108,121,129,119,91,94,95,100,109,120,117,115,108,121,130,88,96,101,103,112,124,135,144,134,112,111,125,94,100,97,98,108,124,139,140,148,135,121,103,100,102,113,114,112,106,120,129,139,141,134,129,110,93,103,117,122,117,110,124,137,138,125,118,98,101,132,138,133,134,132,138,133,129,116,97,130,139,152,156,150,139,130,123,90,90,107,130,146,154,147,133,110,93,107,123,121,123,106,92,90},
  /* Template 46 */
  {96,96,87,95,99,92,94,85,85,92,100,103,100,104,108,93,90,95,98,111,112,104,121,126,95,94,95,107,116,116,116,119,121,90,95,99,99,107,128,137,142,129,120,112,124,85,92,104,107,105,106,123,134,143,149,140,124,103,105,100,109,112,112,108,115,123,127,135,141,129,120,94,113,133,130,118,116,121,129,129,127,117,112,98,92,102,139,145,135,137,134,133,127,121,108,88,91,93,95,123,134,149,154,142,133,121,116,91,112,124,143,147,139,126,104,88,106,115,111,108,95},
  /* Template 47 */
  {90,93,95,91,95,105,106,105,112,90,90,94,102,108,105,100,105,86,91,90,94,105,104,105,115,112,117,130,89,93,88,101,110,116,127,134,118,116,128,135,97,101,101,97,101,109,120,128,139,152,146,120,112,123,98,117,122,107,106,116,126,132,144,149,139,120,104,109,105,136,140,123,125,122,130,133,139,131,118,101,95,87,107,141,144,145,143,132,131,131,119,107,91,103,125,140,150,150,139,131,125,110,87,96,114,133,144,139,135,118,89,91,107,132,122,96,86,86},
  /* Template 48 */
  {86,87,87,89,91,91,97,100,92,86,98,96,94,103,132,96,104,100,92,98,101,100,103,134,95,95,95,102,107,104,106,114,113,110,113,127,92,96,106,106,94,101,104,112,120,127,130,123,123,140,92,106,119,111,99,110,118,127,135,143,153,142,123,121,144,108,126,126,111,118,120,132,139,149,157,141,119,111,117,90,115,133,137,128,126,131,136,130,135,131,122,103,95,90,91,120,136,143,145,143,135,135,129,125,106,93,108,132,144,144,144,138,134,123,100,110,133,134,130,121,111,99,116,109},
  /* Template 49 */
  {85,86,86,87,96,92,84,93,94,91,102,134,86,95,94,87,95,96,97,98,102,105,102,139,93,101,96,99,97,98,101,104,112,115,112,107,116,118,95,105,103,104,99,105,110,114,118,127,132,130,113,140,90,110,120,114,106,107,121,133,140,144,146,142,124,135,146,89,115,126,128,120,112,123,140,146,153,154,144,123,106,129,94,130,146,146,132,132,129,133,136,141,138,122,111,102,102,92,130,152,151,152,142,134,129,128,123,110,98,88,103,130,150,153,144,133,123,117,90,99,134,137,130,113,88,90,107},
  /* Template 50 */
  {88,90,98,131,93,96,92,89,92,96,90,99,138,90,90,95,99,97,95,99,105,100,89,124,97,98,99,102,100,100,105,111,114,115,112,116,109,118,94,100,118,107,99,104,122,127,122,126,129,127,114,138,85,102,123,120,106,114,120,131,124,141,146,133,121,146,89,115,131,131,121,122,131,130,133,150,149,136,120,115,132,96,122,139,147,141,134,139,137,131,137,126,122,110,104,108,96,117,139,151,147,141,138,132,125,115,111,101,93,90,105,119,138,133,123,126,109,101,107,109,100,89},
  /* Template 51 */
  {91,99,130,85,92,92,96,94,94,97,99,90,89,128,86,95,96,96,94,92,94,99,97,92,93,133,95,100,107,102,97,95,108,113,114,114,107,102,114,122,85,107,119,113,108,110,130,138,126,138,130,119,118,121,93,110,123,121,118,118,125,134,136,143,148,136,118,129,108,119,129,131,127,126,135,136,146,149,148,139,115,111,103,118,137,141,139,134,141,145,145,148,139,130,112,114,118,110,138,147,143,132,135,130,127,124,118,109,95,94,92,118,140,132,122,108,94,99,100,96},
  /* Template 52 */
  {91,94,89,91,91,85,97,91,99,97,99,101,98,88,124,94,97,96,93,98,99,106,106,103,96,91,128,140,101,108,108,100,104,114,115,112,115,110,108,111,128,88,98,121,114,104,115,127,134,129,122,120,118,113,124,86,90,99,119,128,120,115,123,133,147,149,143,143,134,124,128,87,93,103,139,151,145,127,130,136,145,152,152,147,138,122,123,99,132,148,153,138,137,133,142,148,149,138,131,120,118,84,106,136,144,141,138,134,127,138,133,122,125,110,107,109,131,132,121,112,114,111,98,94,88},
  /* Template 53 */
  {90,90,91,94,100,105,91,120,128,89,106,106,97,101,103,104,105,103,92,90,109,125,98,115,117,111,110,116,118,111,110,102,118,116,125,87,97,112,122,126,125,121,128,133,128,127,124,124,126,125,91,110,140,151,134,133,143,141,143,139,137,135,134,135,130,88,90,109,143,152,146,139,142,140,142,143,146,141,137,129,124,89,100,126,143,149,146,140,152,168,164,163,146,143,144,147,96,94,102,129,134,137,139,148,167,164,163,143,142,140,145,97,109,103,105,103,105,106,110,105,102,102,100},
  /* Template 54 */
  {94,105,105,106,110,106,88,97,101,106,111,110,112,109,107,104,92,108,113,97,107,115,123,123,126,126,119,116,113,105,115,118,93,99,110,153,138,139,139,133,143,141,136,132,128,125,116,118,102,116,151,174,173,155,155,145,156,155,148,142,166,168,146,118,101,115,135,172,167,166,172,175,170,159,172,170,170,168,146,122,96,96,101,136,157,171,177,180,175,162,176,168,163,157,160,154,100,91,96,106,128,149,159,161,152,158,161,160,157,157,163,162,93,99,105,109,111,123,115,125,128,131,137,155,92,88,88,91},
  /* Template 55 */
  {90,91,100,97,101,100,99,113,110,108,105,109,105,94,96,103,114,92,100,99,112,112,121,124,119,124,120,111,112,114,104,110,105,103,104,116,130,128,131,138,140,148,136,122,122,123,112,106,99,102,108,130,147,150,151,149,154,153,146,145,143,158,138,127,105,104,104,120,142,151,156,157,164,160,151,167,160,169,155,131,125,96,130,154,155,158,161,156,154,166,166,163,145,130,131,93,131,132,136,151,141,144,154,154,143,137,137,156,89,93,107,111,124,128,116,123,135,157,99},
  /* Template 56 */
  {90,87,88,96,89,97,99,106,110,106,95,90,89,96,108,115,108,123,122,112,99,90,99,107,111,107,105,109,112,111,116,117,115,127,128,123,111,105,111,109,102,97,96,92,110,116,123,132,137,124,125,124,131,131,131,131,131,116,104,97,94,102,116,126,141,150,147,139,133,134,136,143,144,134,125,116,102,97,89,104,120,140,148,146,146,147,136,139,150,151,143,133,123,106,99,117,131,133,137,137,122,129,142,143,136,131,115,106,93,100,109,104,118,118,128,128,122,126,134,114,87,102,115,122,126,135,116},
  /* Template 57 */
  {91,94,97,92,90,98,96,100,113,113,103,100,101,103,90,97,112,113,110,139,135,113,104,114,116,103,116,116,119,118,144,146,128,110,107,107,107,106,98,110,116,114,128,133,131,126,130,137,129,128,122,123,119,107,101,90,98,112,115,133,138,137,130,133,132,139,142,136,122,123,113,96,94,99,123,131,137,141,134,133,140,149,146,146,144,119,105,94,98,103,115,125,127,127,127,142,147,147,140,109,105,89,99,105,115,125,137,132,119,126,105,98,110,106,120,133,121,104,113,107},
  /* Template 58 */
  {88,98,101,105,95,106,111,117,120,87,97,103,101,122,123,129,135,120,113,98,96,106,112,120,130,129,129,131,124,115,105,100,97,101,99,89,103,104,126,136,142,144,137,131,132,130,124,120,108,113,112,92,105,128,134,140,141,138,135,143,141,139,129,121,110,114,110,85,109,123,128,138,135,138,148,153,157,149,143,116,106,94,95,100,118,114,126,134,155,158,153,145,117,111,92,100,111,128,143,144,129,118,104,102,115,122,123,124,106,101,120,115,86},
  /* Template 59 */
  {89,95,104,103,94,101,109,114,116,116,88,96,107,112,116,119,125,130,121,108,96,92,103,124,129,131,130,126,128,121,111,101,93,111,129,135,144,142,135,131,131,128,116,112,106,109,97,98,121,130,136,137,145,146,142,139,133,121,115,112,105,97,105,120,130,138,145,147,151,151,143,129,105,101,98,92,101,107,125,138,151,152,148,136,107,101,100,110,131,139,138,125,105,96,108,117,117,116,113,91,109,115,112},
  /* Template 60 */
  {93,104,111,110,96,106,111,119,121,120,87,96,109,125,126,127,128,128,118,106,99,95,109,131,141,145,140,129,126,123,110,99,90,114,126,136,143,144,139,129,129,127,113,111,91,110,126,138,139,152,151,142,138,128,117,115,112,94,93,110,124,142,148,147,154,154,137,122,103,96,87,96,110,131,146,154,155,147,121,92,89,106,114,120,125,119,92,92,94,108,110,103,113,105,105,105,114,94},
  /* Template 61 */
  {92,95,98,93,101,107,109,112,106,89,108,115,114,117,122,121,105,88,91,114,125,124,124,118,132,129,118,92,123,132,139,139,135,134,131,129,116,98,103,133,138,141,142,137,129,128,122,109,107,105,113,131,140,147,148,142,136,117,116,114,99,91,95,115,128,140,148,154,155,130,114,112,99,93,97,115,130,154,157,144,123,101,88,90,88,108,119,132,132,118,105,102,96,104,104,99,101,93,100,103,97,98},
  /* Template 62 */
  {95,101,103,98,97,107,110,111,103,114,99,118,119,118,114,118,117,110,118,131,129,130,129,132,127,121,113,128,132,142,146,143,137,127,111,97,98,91,113,123,143,149,147,133,126,112,106,108,90,102,137,144,144,142,142,120,111,113,109,87,104,115,126,146,152,149,132,118,108,93,89,97,115,128,152,152,140,119,103,90,92,99,111,123,126,127,117,105,87,90,93,108,109,102,103,99,103,96,86,98},
  /* Template 63 */
  {97,103,104,102,106,92,93,97,113,107,108,116,119,111,87,111,128,125,117,112,118,123,109,107,94,84,123,136,129,125,118,124,127,128,114,91,88,94,119,130,130,139,139,132,130,115,96,98,93,114,132,141,141,131,127,108,102,101,93,126,131,135,143,141,119,112,118,107,127,145,145,134,111,115,108,92,86,111,123,146,142,130,117,101,88,100,118,126,128,117,95,87,95,107,113,112,102,88,96,87},
  /* Template 64 */
  {97,109,112,117,118,111,101,118,118,115,115,122,128,111,106,122,124,122,125,125,128,115,106,94,121,125,135,142,148,122,126,115,100,124,137,150,151,137,123,111,103,131,139,141,131,121,116,113,103,105,118,133,139,139,123,124,120,110,122,142,145,133,127,119,107,85,104,126,141,139,128,118,102,95,106,118,129,128,116,90,96,103,112,118,116,90,104,103},
  /* Template 65 */
  {102,110,111,117,120,119,113,96,121,126,126,113,120,122,115,91,114,127,133,123,125,126,115,106,105,124,133,140,138,128,124,119,87,111,131,145,144,130,118,108,93,117,140,139,135,118,109,104,100,88,120,138,144,129,121,116,112,112,119,139,138,133,124,121,94,110,130,137,137,136,122,100,100,106,128,136,138,115,92,99,98,110,120,95,101,102,99},
  /* Template 66 */
  {90,100,101,99,116,119,112,115,118,122,121,109,100,100,124,121,121,118,119,124,121,106,92,90,120,127,132,128,121,118,114,104,96,86,104,124,137,140,137,124,111,112,101,92,114,135,140,142,127,111,107,100,93,101,126,132,135,128,111,112,110,99,95,122,138,138,129,128,118,110,90,115,122,131,131,129,126,118,105,119,132,132,129,136,126,94,110,116,123,132,138,125,98,100,105,105,118,120,90,108,116,113,88,91,102,114,101},
  /* Template 67 */
  {91,101,102,104,109,116,111,113,119,125,124,126,116,114,118,122,122,108,91,108,129,132,129,126,116,114,112,96,90,126,133,139,137,122,120,121,89,110,135,144,138,118,118,121,92,96,120,134,131,121,99,105,102,92,87,115,129,138,133,124,119,110,101,103,121,131,124,124,124,119,106,97,106,113,126,134,137,138,117,95,103,104,121,133,142,142,117,91,90,111,104,107,120,123,91,115,115,87,90,100,107},
  /* Template 68 */
  {101,119,105,107,116,124,117,110,114,117,111,98,106,125,125,116,110,117,114,106,90,103,127,126,127,121,123,115,109,91,98,122,137,139,136,125,127,127,93,93,115,135,137,135,118,135,136,95,83,92,120,128,128,106,105,106,91,89,113,127,132,118,122,118,109,93,87,99,115,126,127,129,126,113,98,86,99,104,119,126,127,126,123,109,94,98,114,123,127,130,128,116,88,103,114,119,122,115,109,98,95,94,103,89,96,91},
  /* Template 69 */
  {95,98,103,120,107,107,102,114,124,118,111,108,105,116,105,99,118,121,116,108,111,116,110,93,116,119,118,115,117,112,106,91,92,122,131,131,125,116,113,118,91,119,132,130,125,109,120,127,99,90,109,124,125,103,114,110,96,84,88,120,126,127,112,114,110,100,95,113,117,119,124,123,120,108,100,89,105,105,112,138,136,125,117,107,99,99,123,135,134,120,120,110,91,117,123,120,117,115,101,102,111,93,111,109,100,88,99,106,94},
  /* Template 70 */
  {103,108,114,106,95,105,111,114,112,115,114,103,112,127,122,114,119,115,105,87,87,109,120,117,117,116,114,109,100,89,114,128,134,120,115,111,112,109,110,130,138,130,107,118,119,98,94,118,128,125,106,113,108,94,92,120,118,112,113,115,104,93,83,108,109,113,124,127,110,105,104,95,99,124,133,136,131,115,107,108,92,100,128,137,135,125,119,119,117,97,113,130,133,125,121,120,119,87,112,109,123,125,119,113,100,94,106,102,93,85},
  /* Template 71 */
  {103,111,103,99,97,115,118,117,113,112,111,89,107,124,124,114,114,112,114,97,107,120,121,127,128,125,127,117,97,83,116,139,135,129,127,127,133,120,102,120,145,142,127,113,124,125,111,117,132,133,123,108,119,121,109,90,121,133,127,121,119,105,113,109,82,102,121,118,121,127,123,114,103,95,106,127,135,136,134,123,126,120,109,99,122,138,142,138,123,123,128,122,129,150,147,145,135,136,143,101,133,135,147,141,144,136,135,134,118,119,119,114,109,100,98,91}
};



/***** target and surround offsets *******/
static int TargetIndex[] = 
{
  /* Template 0 */
  {269,270,271,272,273,300,301,302,303,304,305,306,307,332,333,334,335,336,337,338,339,362,363,364,365,366,367,368,369,370,371,372,395,396,397,398,399,400,401,402,403,404,427,428,429,430,431,432,433,434,435,436,459,460,461,462,463,464,465,466,467,468,491,492,493,494,495,496,497,498,499,500,523,524,525,526,527,528,529,530,531,532,555,556,557,558,559,560,561,562,563,564,587,588,589,590,591,592,593,594,595,619,620,621,622,623,624,625,626,627,651,652,653,654,655,656,657,658,659,683,684,685,686,687,688,689,690,691,718,719,720,721,751},
  /* Template 1 */
  {270,271,272,273,274,302,303,304,305,306,307,332,333,334,335,336,337,338,339,363,364,365,366,367,368,369,370,371,394,395,396,397,398,399,400,401,402,403,427,428,429,430,431,432,433,434,435,436,459,460,461,462,463,464,465,466,467,468,491,492,493,494,495,496,497,498,499,500,523,524,525,526,527,528,529,530,531,555,556,557,558,559,560,561,562,563,587,588,589,590,591,592,593,594,595,619,620,621,622,623,624,625,626,627,651,652,653,654,655,656,657,658,659,682,683,684,685,686,687,688,689,690,691,714,715,717,718,719,720,721,722,723},
  /* Template 2 */
  {270,271,272,273,274,275,301,302,303,304,305,306,307,308,333,334,335,336,337,338,339,340,364,365,366,367,368,369,370,371,372,395,396,397,398,399,400,401,402,403,427,428,429,430,431,432,433,434,435,436,460,461,462,463,464,465,466,467,492,493,494,495,496,497,498,499,523,524,525,526,527,528,529,530,531,554,555,556,557,558,559,560,561,562,563,586,587,588,589,590,591,592,593,594,595,618,619,620,621,622,623,624,625,626,650,651,652,653,654,655,656,657,658,682,683,684,685,686,687,688,689,690,718,719,720,721,722,753,754},
  /* Template 3 */
  {271,272,273,274,302,303,304,305,306,307,308,333,334,335,336,337,338,339,340,365,366,367,368,369,370,371,372,397,398,399,400,401,402,403,404,428,429,430,431,432,433,434,435,436,460,461,462,463,464,465,466,467,468,492,493,494,495,496,497,498,499,523,524,525,526,527,528,529,530,554,555,556,557,558,559,560,561,562,586,587,588,589,590,591,592,593,594,618,619,620,621,622,623,624,625,626,650,651,652,653,654,655,656,657,658,682,683,684,685,686,687,688,689,718,719,720,721,722,752,753},
  /* Template 4 */
  {273,274,275,302,303,304,305,306,307,308,309,333,334,335,336,337,338,339,340,341,365,366,367,368,369,370,371,372,373,396,397,398,399,400,401,402,403,404,405,428,429,430,431,432,433,434,435,436,437,460,461,462,463,464,465,466,467,468,492,493,494,495,496,497,498,499,500,524,525,526,527,528,529,530,531,554,555,556,557,558,559,560,561,562,563,585,586,587,588,589,590,591,592,593,594,617,618,619,620,621,622,623,624,625,626,649,650,651,652,653,654,655,656,657,658,683,684,685,686,687,688,689,718,719,720,721,722,752,753},
  /* Template 5 */
  {240,241,242,271,272,273,274,302,303,304,305,306,307,308,334,335,336,337,338,339,340,341,365,366,367,368,369,370,371,372,373,396,397,398,399,400,401,402,403,404,405,428,429,430,431,432,433,434,435,436,437,438,460,461,462,463,464,465,466,467,468,469,492,493,494,495,496,497,498,499,500,523,524,525,526,527,528,529,530,531,553,554,555,556,557,558,559,560,561,562,563,585,586,587,588,589,590,591,592,593,594,617,618,619,620,621,622,623,624,625,626,649,650,651,652,653,654,655,656,657,658,683,684,685,686,687,688,717,718,719,720,721,751,752,753},
  /* Template 6 */
  {273,274,302,303,304,305,306,307,333,334,335,336,337,338,339,364,365,366,367,368,369,370,371,372,373,396,397,398,399,400,401,402,403,404,405,406,428,429,430,431,432,433,434,435,436,437,438,459,460,461,462,463,464,465,466,467,468,469,470,491,492,493,494,495,496,497,498,499,500,501,522,523,524,525,526,527,528,529,530,531,553,554,555,556,557,558,559,560,561,562,563,583,584,585,586,587,588,589,590,591,592,593,594,615,616,617,618,619,620,621,622,623,624,625,626,647,648,649,650,651,652,653,654,655,656,657,683,684,685,686,687,688,716,717,718,719,720,750,751,752,782,783},
  /* Template 7 */
  {274,302,303,304,305,306,307,332,333,334,335,336,337,338,339,340,364,365,366,367,368,369,370,371,372,373,396,397,398,399,400,401,402,403,404,405,427,428,429,430,431,432,433,434,435,436,437,438,459,460,461,462,463,464,465,466,467,468,469,470,471,491,492,493,494,495,496,497,498,499,500,501,502,521,522,523,524,525,526,527,528,529,530,531,532,551,552,553,554,555,556,557,558,559,560,561,562,563,582,583,584,585,586,587,588,589,590,591,592,593,594,615,616,617,618,619,620,621,622,623,624,625,626,650,651,652,653,654,655,656,657,683,684,685,686,687,688,716,717,718,719,749,750,751,781,782},
  /* Template 8 */
  {303,304,305,306,334,335,336,337,338,339,365,366,367,368,369,370,371,372,373,396,397,398,399,400,401,402,403,404,405,427,428,429,430,431,432,433,434,435,436,437,459,460,461,462,463,464,465,466,467,468,469,490,491,492,493,494,495,496,497,498,499,500,501,502,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,551,552,553,554,555,556,557,558,559,560,561,562,563,564,583,584,585,586,587,588,589,590,591,592,593,594,595,615,616,617,618,619,620,621,622,623,624,625,626,650,651,652,653,654,655,656,683,684,685,686,687,688,715,716,717,718,719,749,750},
  /* Template 9 */
  {271,272,303,304,305,306,334,335,336,337,338,339,365,366,367,368,369,370,371,397,398,399,400,401,402,403,404,405,427,428,429,430,431,432,433,434,435,436,437,438,459,460,461,462,463,464,465,466,467,468,469,470,471,490,491,492,493,494,495,496,497,498,499,500,501,502,503,520,521,522,523,524,525,526,527,528,529,530,531,532,533,551,552,553,554,555,556,557,558,559,560,561,562,563,564,583,584,585,586,587,588,589,590,591,592,593,594,595,616,617,618,619,620,621,622,623,624,625,626,649,650,651,652,653,654,655,656,682,683,684,685,686,687,688,715,716,717,718,749},
  /* Template 10 */
  {304,305,306,307,334,335,336,337,338,339,365,366,367,368,369,370,371,397,398,399,400,401,402,403,404,427,428,429,430,431,432,433,434,435,436,437,438,458,459,460,461,462,463,464,465,466,467,468,469,470,471,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,583,584,585,586,587,588,589,590,591,592,593,594,595,616,617,618,619,620,621,622,623,624,625,626,649,650,651,652,653,654,655,656,682,683,684,685,686,687,714,715,716,717,718,747,748,749},
  /* Template 11 */
  {304,305,306,334,335,336,337,338,339,366,367,368,369,370,371,397,398,399,400,401,402,403,404,428,429,430,431,432,433,434,435,436,437,458,459,460,461,462,463,464,465,466,467,468,469,470,487,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,584,585,586,587,588,589,590,591,592,593,594,595,596,616,617,618,619,620,621,622,623,624,625,649,650,651,652,653,654,655,656,682,683,684,685,686,714,715,716,717,747,748},
  /* Template 12 */
  {306,335,336,337,338,339,366,367,368,369,370,371,397,398,399,400,401,402,403,404,429,430,431,432,433,434,435,436,437,438,457,458,459,460,461,462,463,464,465,466,467,468,469,470,487,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,584,585,586,587,588,589,590,591,592,593,594,595,596,617,618,619,620,621,622,623,624,625,626,650,651,652,653,654,655,656,682,683,684,685,686,714,715,716,717},
  /* Template 13 */
  {334,335,336,337,338,339,340,365,366,367,368,369,370,371,372,397,398,399,400,401,402,403,404,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,487,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,584,585,586,587,588,589,590,591,592,593,594,595,596,597,617,618,619,620,621,622,623,624,625,626,649,650,651,652,653,654,655,656,682,683,684,685,686,714,715},
  /* Template 14 */
  {334,335,336,337,338,339,365,366,367,368,369,370,371,372,391,392,394,395,396,397,398,399,400,401,402,403,404,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,487,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,584,585,586,587,588,589,590,591,592,593,594,595,596,597,617,618,619,620,621,622,623,624,625,626,627,649,650,651,652,653,654,655,656,681,682,683,684,685,686},
  /* Template 15 */
  {334,335,336,337,338,339,365,366,367,368,369,370,371,372,391,392,393,394,395,396,397,398,399,400,401,402,403,404,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,487,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,617,618,619,620,621,622,623,624,625,626,627,628,629,649,650,651,652,653,654,655,656,681,682,683,684,685,714},
  /* Template 16 */
  {334,335,336,337,338,339,360,362,363,364,365,366,367,368,369,370,371,372,391,392,393,394,395,396,397,398,399,400,401,402,403,404,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,487,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,616,617,618,619,620,621,622,623,624,625,626,627,628,629,648,649,650,651,652,653,654,655,656,658,680,681,682,683},
  /* Template 17 */
  {333,334,335,336,339,359,360,361,362,363,364,365,366,367,368,369,370,371,372,391,392,393,394,395,396,397,398,399,400,401,402,403,404,405,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,616,617,618,619,620,621,622,623,624,625,626,627,628,629,630,648,649,650,651,652,653,654,655,656,657,658,659,660,680,681,682},
  /* Template 18 */
  {360,361,362,363,364,365,366,367,368,369,370,371,372,373,392,393,394,395,396,397,398,399,400,401,402,403,404,405,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,616,617,618,619,620,621,622,623,624,625,626,627,628,629,630,631,648,649,650,651,652,653,654,655,656,657,658,659,660,661,685},
  /* Template 19 */
  {329,330,331,332,333,360,361,362,363,364,365,366,367,368,369,370,371,372,393,394,395,396,397,398,399,400,401,402,403,404,405,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,616,617,618,619,620,621,622,623,624,625,626,627,628,629,630,631,649,652,653,654,655,656,657,658,659,660,661,687},
  /* Template 20 */
  {329,330,331,332,333,334,361,362,363,364,365,366,367,368,369,370,371,393,394,395,396,397,398,399,400,401,402,403,425,426,427,428,429,430,431,432,433,434,435,436,437,438,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600,615,616,617,618,619,620,621,622,623,624,625,626,627,628,629,630,654,655,656,657,658,659,660,661,692},
  /* Template 21 */
  {267,298,299,300,301,302,329,330,331,332,333,334,361,362,363,364,365,366,367,368,369,393,394,395,396,397,398,399,400,401,402,403,405,424,425,426,427,428,429,430,431,432,433,434,435,436,437,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,504,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,620,621,622,623,624,625,626,627,628,629,630,631,655,656,657,658,659,660,661,662,690,691,692},
  /* Template 22 */
  {266,297,298,299,300,301,302,303,329,330,331,332,333,334,361,362,363,364,365,366,367,368,369,370,392,393,394,395,396,397,398,399,400,401,402,403,404,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,620,621,622,623,624,625,626,627,628,629,630,654,655,656,657,658,659,660,661,662,690,691,692},
  /* Template 23 */
  {234,265,266,267,297,298,299,300,301,302,329,330,331,332,333,334,335,361,362,363,364,365,366,367,368,369,370,393,394,395,396,397,398,399,400,401,402,403,423,424,425,426,427,428,429,430,431,432,433,434,435,436,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,487,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,586,587,588,589,590,591,592,593,594,595,596,597,598,599,621,622,623,624,625,626,627,628,629,630,631,655,656,657,658,659,660,661,662,689,690,691,692,693,723},
  /* Template 24 */
  {267,299,300,301,329,330,331,332,333,334,335,362,363,364,365,366,367,368,393,394,395,396,397,398,399,400,401,424,425,426,427,428,429,430,431,432,433,434,435,456,457,458,459,460,461,462,463,464,465,466,467,468,469,487,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,588,589,590,591,592,593,594,595,596,597,598,599,600,621,622,623,624,625,626,627,628,629,630,631,632,655,656,657,658,659,660,661,662,689,690,691,692,693,722,723,724},
  /* Template 25 */
  {269,299,301,302,331,332,333,334,335,362,363,364,365,366,367,368,392,393,394,395,396,397,398,399,400,401,424,425,426,427,428,429,430,431,432,433,434,435,455,456,457,458,459,460,461,462,463,464,465,466,467,468,487,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,555,556,557,558,559,560,561,562,563,564,565,566,588,589,590,591,592,593,594,595,596,597,598,599,622,623,624,625,626,627,628,629,630,655,656,657,658,659,660,661,662,689,690,691,692,693,722,723},
  /* Template 26 */
  {237,238,269,270,298,299,300,301,302,330,331,332,333,334,335,361,362,363,364,365,366,367,392,393,394,395,396,397,398,399,400,423,424,425,426,427,428,429,430,431,432,433,434,455,456,457,458,459,460,461,462,463,464,465,466,467,468,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,554,555,556,557,558,559,560,561,562,563,564,565,566,588,589,590,591,592,593,594,595,596,597,598,621,622,623,624,625,626,627,628,629,630,655,656,657,658,659,660,661,662,688,689,690,691,692,693,722,723},
  /* Template 27 */
  {238,268,269,270,298,299,300,301,302,303,329,330,331,332,333,334,335,359,361,362,363,364,365,366,367,368,391,392,393,394,395,396,397,398,399,400,401,423,424,425,426,427,428,429,430,431,432,433,434,456,457,458,459,460,461,462,463,464,465,466,467,488,489,490,491,492,493,494,495,496,497,498,499,500,523,524,525,526,527,528,529,530,531,532,533,534,554,555,556,557,558,559,560,561,562,563,564,565,566,589,590,591,592,593,594,595,596,597,598,621,622,623,624,625,626,627,628,629,630,654,655,656,657,658,659,660,661,662,688,689,690,691,692,693,694,721,722,723,724},
  /* Template 28 */
  {266,267,268,269,270,271,298,299,300,301,302,303,329,330,331,332,333,334,335,361,362,363,364,365,366,367,368,391,392,393,394,395,396,397,398,399,400,401,423,424,425,426,427,428,429,430,431,432,433,434,455,456,457,458,459,460,461,462,463,464,465,466,467,468,490,491,492,493,494,495,496,497,498,499,500,503,522,523,524,525,526,527,528,529,530,531,532,533,534,535,556,557,558,559,560,561,562,563,564,565,566,567,589,590,591,592,593,594,595,596,597,598,599,621,622,623,624,625,626,627,628,629,630,654,655,656,657,658,659,660,661,662,687,688,689,690,691,692,693,694,720,721,722,723,724},
  /* Template 29 */
  {269,270,271,297,298,299,300,301,302,303,329,330,331,332,333,334,335,360,361,362,363,364,365,366,367,368,392,393,394,395,396,397,398,399,400,424,425,426,427,428,429,430,431,432,433,434,458,459,460,461,462,463,464,465,466,467,491,492,493,494,495,496,497,498,499,523,524,525,526,527,528,529,530,531,532,533,534,535,556,557,558,559,560,561,562,563,564,565,566,567,589,590,591,592,593,594,595,596,597,598,599,621,622,623,624,625,626,627,628,629,630,654,655,656,657,658,659,660,661,662,687,688,689,690,691,692,693,720,721,722,723,724},
  /* Template 30 */
  {237,269,270,271,297,298,299,300,301,302,303,304,328,329,330,331,332,333,334,335,360,361,362,363,364,365,366,367,393,394,395,396,397,398,399,400,425,426,427,428,429,430,431,432,459,460,461,462,463,464,465,466,467,491,492,493,494,495,496,497,498,499,500,524,525,526,527,528,529,530,531,532,533,556,557,558,559,560,561,562,563,564,565,566,589,590,591,592,593,594,595,596,597,598,621,622,623,624,625,626,627,628,629,630,654,655,656,657,658,659,660,661,687,688,689,690,691,692,693,720,721,722,723,724},
  /* Template 31 */
  {206,238,239,269,270,271,272,297,298,299,300,301,302,303,304,328,329,330,331,332,333,334,335,360,361,362,363,364,365,366,367,393,394,395,396,397,398,399,400,401,427,428,429,430,431,432,433,459,460,461,462,463,464,465,466,491,492,493,494,495,496,497,498,499,524,525,526,527,528,529,530,531,532,556,557,558,559,560,561,562,563,564,565,588,589,590,591,592,593,594,595,596,597,621,622,623,624,625,626,627,628,629,654,655,656,657,658,659,660,661,686,687,688,689,690,691,692,719,720,721,722,723,724},
  /* Template 32 */
  {238,239,269,270,271,297,298,299,300,301,302,303,329,330,331,332,333,334,335,361,362,363,364,365,366,367,394,395,396,397,398,399,400,427,428,429,430,431,432,433,459,460,461,462,463,464,465,466,492,493,494,495,496,497,498,499,524,525,526,527,528,529,530,531,556,557,558,559,560,561,562,563,564,565,588,589,590,591,592,593,594,595,596,597,621,622,623,624,625,626,627,628,629,654,655,656,657,658,659,660,661,686,687,688,689,690,691,692,719,720,721,722,723,753},
  /* Template 33 */
  {269,270,297,298,299,300,301,302,303,329,330,331,332,333,334,335,362,363,364,365,366,367,394,395,396,397,398,399,400,401,402,427,428,429,430,431,432,433,434,459,460,461,462,463,464,465,466,492,493,494,495,496,497,498,524,525,526,527,528,529,530,531,556,557,558,559,560,561,562,563,564,588,589,590,591,592,593,594,595,596,597,598,621,622,623,624,625,626,627,628,629,630,653,654,655,656,657,658,659,660,661,662,686,687,688,689,690,691,692,718,719,720,721,722,723,751,752,753,754},
  /* Template 34 */
  {267,268,269,270,298,299,300,301,302,330,331,332,333,334,335,363,364,365,366,367,395,396,397,398,399,401,428,429,430,431,432,433,434,460,461,462,463,464,465,466,492,493,494,495,496,497,498,499,524,525,526,527,528,529,530,531,532,533,556,557,558,559,560,561,562,563,564,565,588,589,590,591,592,593,594,595,596,597,620,621,622,623,624,625,626,627,628,629,652,653,654,655,656,657,658,659,660,661,662,685,686,687,688,689,690,691,692,693,718,719,720,721,722,723,752,753,754},
  /* Template 35 */
  {267,268,269,270,275,276,298,299,300,301,302,303,307,308,309,330,331,332,333,334,335,338,339,340,341,363,364,365,366,371,372,396,397,398,400,401,402,403,404,428,429,430,432,433,434,435,436,460,461,462,463,464,465,466,467,468,492,493,494,495,496,497,498,499,524,525,526,527,528,529,530,531,532,556,557,558,559,560,561,562,563,564,588,589,590,591,592,593,594,595,596,620,621,622,623,624,625,626,627,628,651,652,653,654,655,656,657,658,659,660,684,685,686,687,688,689,690,691,692,717,718,719,720,721,722,723,751,752,753,754},
  /* Template 36 */
  {243,267,268,269,270,275,276,298,299,300,301,302,303,306,307,308,331,332,333,334,335,336,338,339,340,364,365,366,368,370,371,372,373,396,397,399,400,401,402,403,404,405,428,429,430,431,432,433,434,435,436,437,460,461,462,463,464,465,466,467,468,469,492,493,494,495,496,497,498,499,500,524,525,526,527,528,529,530,531,532,556,557,558,559,560,561,562,563,564,565,587,588,589,590,591,592,593,594,595,596,619,620,621,622,623,624,625,626,627,628,651,652,653,654,655,656,657,658,659,660,683,684,685,686,687,688,689,690,691,716,717,718,719,720,721,722,723,750,751,752,753,754,783,784},
  /* Template 37 */
  {238,243,244,268,269,270,275,276,277,300,301,302,303,305,306,307,308,309,310,332,333,334,335,338,339,340,341,342,370,371,372,373,396,397,398,401,402,403,404,405,428,429,430,431,432,433,434,435,436,437,461,462,463,464,465,466,467,468,469,493,494,495,496,497,498,499,500,525,526,527,528,529,530,531,532,556,557,558,559,560,561,562,563,564,565,587,588,589,590,591,592,593,594,595,596,619,620,621,622,623,624,625,626,627,628,629,651,652,653,654,655,656,657,658,659,660,661,683,684,685,686,687,688,689,690,691,692,717,718,719,720,721,722,723,750,751,752,753,754},
  /* Template 38 */
  {275,305,306,307,308,309,338,339,340,341,370,371,372,373,401,402,403,404,405,406,431,432,433,434,435,436,437,438,462,463,464,465,466,467,468,469,494,495,496,497,498,499,500,525,526,527,528,529,530,531,532,533,555,556,557,558,559,560,561,562,563,564,565,585,586,587,588,589,590,591,592,593,594,595,596,617,618,619,620,621,622,623,624,625,626,627,628,650,651,652,653,654,655,656,657,658,659,660,684,685,686,687,688,689,690,691,717,718,719,720,721,722,751,752,753},
  /* Template 39 */
  {274,305,306,307,308,309,310,311,338,339,340,341,342,343,370,371,372,373,374,375,402,403,404,405,406,431,432,433,434,435,436,437,438,463,464,465,466,467,468,469,494,495,496,497,498,499,500,525,526,527,528,529,530,531,532,556,557,558,559,560,561,562,563,564,565,586,587,588,589,590,591,592,593,594,595,596,597,618,619,620,621,622,623,624,625,626,627,628,651,652,653,654,655,656,657,658,659,685,686,687,688,689,690,691,718,719,720,721,722,751,752},
  /* Template 40 */
  {273,274,305,306,307,308,309,338,339,340,341,342,343,370,371,372,373,374,375,402,403,404,405,406,407,431,433,434,435,436,437,438,462,463,464,465,466,467,468,469,470,494,495,496,497,498,499,500,501,502,525,526,527,528,529,530,531,532,533,554,555,556,557,558,559,560,561,562,563,564,565,586,587,588,589,590,591,592,593,594,595,596,619,620,621,622,623,624,625,626,627,628,651,652,653,654,655,656,657,658,659,660,684,685,686,687,688,689,690,691,717,718,719,720,721,722,752,753},
  /* Template 41 */
  {273,274,275,305,306,307,308,338,339,340,341,342,370,371,372,373,374,375,376,401,402,403,404,405,406,407,408,431,432,433,434,435,436,437,438,439,462,463,464,465,466,467,468,469,470,471,494,495,496,497,498,499,500,501,502,525,526,527,528,529,530,531,532,533,554,555,556,557,558,559,560,561,562,563,586,587,588,589,590,591,592,593,594,595,619,620,621,622,623,624,625,626,627,651,652,653,654,655,656,657,658,659,684,685,686,687,688,689,690,691,717,718,719,720,721,722},
  /* Template 42 */
  {273,274,275,276,305,306,307,308,338,339,340,341,370,371,372,373,374,375,400,401,402,403,404,405,406,407,431,432,433,434,435,436,437,438,439,462,463,464,465,466,467,468,469,470,471,493,494,495,496,497,498,499,500,501,502,503,523,524,525,526,527,528,529,530,531,532,533,534,554,555,556,557,558,559,560,561,562,563,587,588,589,590,591,592,593,594,595,619,620,621,622,623,624,625,626,627,651,652,653,654,655,656,657,658,659,684,685,686,687,688,689,690,717,718,719,720,721},
  /* Template 43 */
  {274,275,276,306,307,308,338,339,340,341,369,370,371,372,373,374,375,376,377,401,402,403,404,405,406,407,408,409,430,431,432,433,434,435,436,437,438,439,440,441,462,463,464,465,466,467,468,469,470,471,472,493,494,495,496,497,498,499,500,501,502,524,525,526,527,528,529,530,531,532,533,534,555,556,557,558,559,560,561,562,563,564,587,588,589,590,591,592,593,594,595,596,619,620,621,622,623,624,625,626,627,628,650,651,652,653,654,655,656,657,658,659,684,685,686,687,688,689,690,717,718,719,720,721,722,754},
  /* Template 44 */
  {275,306,307,308,338,339,340,341,370,371,372,373,374,400,401,402,403,404,405,406,407,408,409,430,431,432,433,434,435,436,437,438,439,440,441,462,463,464,465,466,467,468,469,470,471,472,492,493,494,495,496,497,498,499,500,501,502,503,524,525,526,527,528,529,530,531,532,533,534,555,556,557,558,559,560,561,562,563,564,565,587,588,589,590,591,592,593,594,595,596,597,619,620,621,622,623,624,625,626,627,628,651,652,653,654,655,656,657,658,659,684,685,686,687,688,689,718,719,720},
  /* Template 45 */
  {307,308,339,340,341,342,343,370,371,372,373,374,375,376,400,401,402,403,404,405,406,407,408,430,431,432,433,434,435,436,437,438,439,440,461,462,463,464,465,466,467,468,469,470,471,472,492,493,494,495,496,497,498,499,500,501,502,503,504,523,524,525,526,527,528,529,530,531,532,533,534,535,555,556,557,558,559,560,561,562,563,564,565,587,588,589,590,591,592,593,594,595,596,619,620,621,622,623,624,625,626,627,628,651,652,653,654,655,656,657,658,684,685,686,687,688,689,719,720},
  /* Template 46 */
  {307,308,338,339,340,341,342,343,369,370,371,372,373,374,375,399,400,401,402,403,404,405,406,407,431,432,433,434,435,436,437,438,439,461,462,463,464,465,466,467,468,469,470,471,472,491,492,493,494,495,496,497,498,499,500,501,502,503,504,523,524,525,526,527,528,529,530,531,532,533,534,535,555,556,557,558,559,560,561,562,563,564,565,566,586,587,588,589,590,591,592,593,594,595,596,597,617,618,619,620,621,622,623,624,625,626,627,628,652,653,654,655,656,657,658,684,685,686,687,688,689},
  /* Template 47 */
  {338,339,340,341,370,371,372,373,374,399,400,401,402,403,404,405,406,429,430,431,432,433,434,435,436,437,438,439,461,462,463,464,465,466,467,468,469,470,471,472,491,492,493,494,495,496,497,498,499,500,501,502,503,504,523,524,525,526,527,528,529,530,531,532,533,534,535,536,555,556,557,558,559,560,561,562,563,564,565,566,567,586,587,588,589,590,591,592,593,594,595,596,597,619,620,621,622,623,624,625,626,627,628,651,652,653,654,655,656,657,658,684,685,686,687,688,718,719},
  /* Template 48 */
  {306,307,308,338,339,340,341,367,368,369,370,371,372,373,374,398,399,400,401,402,403,404,405,406,428,429,430,431,432,433,434,435,436,437,438,439,458,459,460,461,462,463,464,465,466,467,468,469,470,471,490,491,492,493,494,495,496,497,498,499,500,501,502,503,504,523,524,525,526,527,528,529,530,531,532,533,534,535,536,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,586,587,588,589,590,591,592,593,594,595,596,597,619,620,621,622,623,624,625,626,627,652,653,654,655,656,657,685,686,687},
  /* Template 49 */
  {308,309,339,340,341,367,368,370,371,372,373,374,395,396,397,398,399,400,401,402,403,404,405,406,426,427,428,429,430,431,432,433,434,435,436,437,438,439,458,459,460,461,462,463,464,465,466,467,468,469,470,471,490,491,492,493,494,495,496,497,498,499,500,501,502,503,504,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,586,587,588,589,590,591,592,593,594,595,596,597,598,619,620,621,622,623,624,625,626,627,652,653,654,655,656,657,685,686},
  /* Template 50 */
  {339,340,341,342,366,367,368,369,370,371,372,373,374,396,397,398,399,400,401,402,403,404,405,406,426,427,428,429,430,431,432,433,434,435,436,437,438,439,458,459,460,461,462,463,464,465,466,467,468,469,470,471,490,491,492,493,494,495,496,497,498,499,500,501,502,503,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,586,587,588,589,590,591,592,593,594,595,596,597,598,599,619,620,621,622,623,624,625,626,653,654,655,656},
  /* Template 51 */
  {340,341,342,364,365,366,367,368,369,370,371,372,373,374,395,396,397,398,399,400,401,402,403,404,405,406,426,427,428,429,430,431,432,433,434,435,436,437,438,439,458,459,460,461,462,463,464,465,466,467,468,469,470,471,490,491,492,493,494,495,496,497,498,499,500,501,502,503,522,523,524,525,526,527,528,529,530,531,532,533,534,535,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,587,588,589,590,591,592,593,594,595,596,597,598,599,600,620,621,622,623,624,625,626,653,654},
  /* Template 52 */
  {335,336,337,338,339,340,341,366,367,368,369,370,371,372,374,395,396,397,398,399,400,401,402,403,404,405,406,407,427,428,429,430,431,432,433,434,435,436,437,438,439,458,459,460,461,462,463,464,465,466,467,468,469,470,471,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,554,555,556,557,558,559,560,561,562,563,564,565,566,567,586,587,588,589,590,591,592,593,594,595,596,597,598,599,620,621,622,623,624,625,626,627,628,653},
  /* Template 53 */
  {335,365,366,367,368,369,373,374,375,395,396,397,398,399,400,401,402,403,404,405,406,407,427,428,429,430,431,432,433,434,435,436,437,438,439,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,620,621,622,623,624,625,626,627,628,629,630,631},
  /* Template 54 */
  {364,365,366,367,368,369,395,396,397,398,399,400,401,402,403,404,405,406,407,427,428,429,430,431,432,433,434,435,436,437,438,439,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,620,621,622,623,624,625,626,627,628,629,630,631,654,655,659,686},
  /* Template 55 */
  {364,365,366,367,368,369,396,397,398,399,400,401,402,403,404,405,406,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,554,555,556,557,558,559,560,561,562,563,564,565,566,567,587,588,589,590,591,592,593,594,595,596,597,598,599,622,623,624,625,626,627,628,629,630,631,663},
  /* Template 56 */
  {300,301,332,333,364,365,366,367,368,369,370,371,394,395,396,397,398,399,400,401,402,403,404,405,406,407,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,504,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,555,556,557,558,559,560,561,562,563,564,565,566,567,568,590,591,592,593,594,595,596,597,598,599,600,626,627,628,629,630,631,632},
  /* Template 57 */
  {301,332,333,334,363,364,365,366,367,368,369,370,392,393,394,395,396,397,398,399,400,401,402,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,504,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,555,556,557,558,559,560,561,562,563,564,565,566,567,568,591,592,593,594,595,596,597,598,599,626,627,628,629,630,631,661,662,663},
  /* Template 58 */
  {332,333,334,335,364,365,366,367,368,393,394,395,396,397,398,399,400,401,402,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,504,505,523,524,525,526,527,528,529,530,531,532,533,534,535,536,556,557,558,559,560,561,562,563,564,565,566,567,568,592,593,594,595,596,597,598,599,626,627,628,629,630,631,660,661,662,663},
  /* Template 59 */
  {332,333,334,335,363,364,365,366,367,368,393,394,395,396,397,398,399,400,401,402,403,425,426,427,428,429,430,431,432,433,434,435,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,490,491,492,493,494,495,496,497,498,499,500,501,502,503,523,524,525,526,527,528,529,530,531,532,533,534,535,536,557,558,559,560,561,562,563,564,565,566,567,592,593,594,595,596,597,598,599,626,627,628,629,630,659,660,661,662},
  /* Template 60 */
  {332,333,334,335,363,364,365,366,367,368,393,394,395,396,397,398,399,400,401,402,403,425,426,427,428,429,430,431,432,433,434,435,457,458,459,460,461,462,463,464,465,466,467,468,490,491,492,493,494,495,496,497,498,499,500,501,502,503,524,525,526,527,528,529,530,531,532,533,534,535,536,558,559,560,561,562,563,564,565,566,567,592,593,594,595,596,597,598,625,626,627,628,629,630,659,660,661,692},
  /* Template 61 */
  {300,301,302,331,332,333,334,335,336,362,363,364,365,366,367,368,369,392,393,394,395,396,397,398,399,400,401,425,426,427,428,429,430,431,432,433,434,435,458,459,460,461,462,463,464,465,466,467,468,491,492,493,494,495,496,497,498,499,500,501,502,503,524,525,526,527,528,529,530,531,532,533,534,535,558,559,560,561,562,563,564,565,566,567,591,592,593,594,595,596,597,598,625,626,627,628,629,658,659,660,661,692},
  /* Template 62 */
  {300,301,302,303,331,332,333,334,335,336,362,363,364,365,366,367,368,369,394,395,396,397,398,399,400,401,426,427,428,429,430,431,432,433,434,435,436,458,459,460,461,462,463,464,465,466,467,468,491,492,493,494,495,496,497,498,499,500,501,524,525,526,527,528,529,530,531,532,533,534,535,558,559,560,561,562,563,564,565,566,567,591,592,593,594,595,596,597,599,624,625,626,627,628,629,658,659,660,690,691},
  /* Template 63 */
  {300,301,302,303,304,329,330,331,332,333,334,335,336,337,361,362,363,364,365,366,367,368,369,370,371,393,394,395,396,397,398,399,400,401,402,403,404,426,427,428,429,430,431,432,433,434,435,436,459,460,461,462,463,464,465,466,467,468,492,493,494,495,496,497,498,499,500,526,527,528,529,530,531,532,533,534,558,559,560,561,562,563,564,565,591,592,593,594,595,596,597,624,625,626,627,628,629,657,658,688},
  /* Template 64 */
  {299,300,301,302,303,304,330,331,332,333,334,335,336,337,362,363,364,365,366,367,368,369,370,394,395,396,397,398,399,400,401,402,427,428,429,430,431,432,433,434,460,461,462,463,464,465,466,467,468,493,494,495,496,497,498,499,500,526,527,528,529,530,531,532,533,558,559,560,561,562,563,564,565,591,592,593,594,595,596,597,624,625,626,627,628,629,657,658},
  /* Template 65 */
  {299,300,301,302,303,304,305,330,331,332,333,334,335,336,337,362,363,364,365,366,367,368,369,370,395,396,397,398,399,400,401,402,427,428,429,430,431,432,433,434,460,461,462,463,464,465,466,467,468,493,494,495,496,497,498,499,500,526,527,528,529,530,531,532,558,559,560,561,562,563,564,565,591,592,593,594,595,596,597,624,625,626,627,628,656,657,689},
  /* Template 66 */
  {267,268,269,298,299,300,301,302,303,304,305,306,307,330,331,332,333,334,335,336,337,338,339,362,363,364,365,366,367,368,369,370,371,394,395,396,397,398,399,400,401,402,403,427,428,429,430,431,432,433,434,435,436,460,461,462,463,464,465,466,467,468,493,494,495,496,497,498,499,500,525,526,527,528,529,530,531,532,558,559,560,561,562,563,564,590,591,592,593,594,595,596,597,623,624,625,626,627,628,655,656,657,658,659,687,688,689},
  /* Template 67 */
  {267,268,269,270,299,300,301,302,303,304,331,332,333,334,335,336,337,338,339,363,364,365,366,367,368,369,370,371,395,396,397,398,399,400,401,402,403,428,429,430,431,432,433,434,435,460,461,462,463,464,465,466,467,468,492,493,494,495,496,497,498,499,500,525,526,527,528,529,530,531,532,557,558,559,560,561,562,563,564,589,590,591,592,593,594,595,596,597,622,623,624,625,626,627,628,655,656,657,658,687,688},
  /* Template 68 */
  {267,268,269,270,299,300,301,302,303,304,305,306,331,332,333,334,335,336,337,338,362,363,364,365,366,367,368,369,370,394,395,396,397,398,399,400,401,402,403,427,428,429,430,431,432,433,434,435,459,460,461,462,463,464,465,466,467,492,493,494,495,496,497,498,499,500,524,525,526,527,528,529,530,531,532,556,557,558,559,560,561,562,563,564,589,590,591,592,593,594,595,596,622,623,624,625,626,627,628,654,655,656,657,658,686,687},
  /* Template 69 */
  {236,237,267,268,269,270,271,299,300,301,302,303,304,305,306,331,332,333,334,335,336,337,338,363,364,365,366,367,368,369,370,371,395,396,397,398,399,400,401,402,403,428,429,430,431,432,433,434,435,460,461,462,463,464,465,466,467,491,492,493,494,495,496,497,498,499,500,525,526,527,528,529,530,531,532,556,557,558,559,560,561,562,563,564,589,590,591,592,593,594,595,596,622,623,624,625,626,627,628,653,654,655,656,657,658,659,685,686,687},
  /* Template 70 */
  {268,269,270,271,272,300,301,302,303,304,305,306,332,333,334,335,336,337,338,339,363,364,365,366,367,368,369,370,371,395,396,397,398,399,400,401,402,403,428,429,430,431,432,433,434,435,460,461,462,463,464,465,466,467,492,493,494,495,496,497,498,499,524,525,526,527,528,529,530,531,532,556,557,558,559,560,561,562,563,564,588,589,590,591,592,593,594,595,596,621,622,623,624,625,626,627,628,652,653,654,655,656,657,658,659,660,685,686,687,688},
  /* Template 71 */
  {269,270,271,272,300,301,302,303,304,305,306,307,332,333,334,335,336,337,338,339,364,365,366,367,368,369,370,371,372,373,396,397,398,399,400,401,402,403,404,428,429,430,431,432,433,434,435,460,461,462,463,464,465,466,467,491,492,493,494,495,496,497,498,499,500,524,525,526,527,528,529,530,531,532,556,557,558,559,560,561,562,563,564,588,589,590,591,592,593,594,595,620,621,622,623,624,625,626,627,651,652,653,654,655,656,657,658,659,684,685,686,687,688,689,690,691}
};

static int SurroundIndex[] = 
{
  /* Template 0 */
  {236,237,238,239,240,241,242,267,268,274,275,276,299,308,329,330,331,340,341,361,373,393,394,405,426,437,458,469,490,501,522,533,554,565,586,596,597,618,628,650,660,682,692,714,715,716,717,722,723,724,749,750,752,753,754,782,783,784},
  /* Template 1 */
  {237,238,239,240,241,242,243,269,275,276,299,300,301,308,330,331,340,361,362,372,393,404,405,425,426,437,458,469,490,501,522,532,533,554,564,586,596,618,628,649,650,660,681,692,713,724,745,746,747,748,749,750,751,752,753,754,755,756},
  /* Template 2 */
  {237,238,239,240,241,242,243,244,268,269,276,277,300,309,331,332,341,362,363,373,394,405,426,437,458,468,469,490,500,521,522,532,553,564,585,596,617,627,628,649,659,681,691,713,714,715,716,717,723,749,750,751,752,755,784,785,786,787},
  /* Template 3 */
  {238,239,240,241,242,243,269,270,275,276,277,300,301,309,332,341,364,373,395,396,405,427,437,459,469,490,491,500,501,521,522,531,532,553,563,585,595,617,627,649,659,681,691,713,714,715,716,717,723,749,750,751,754,755,783,784,785,786},
  /* Template 4 */
  {240,241,242,243,244,269,270,271,272,276,277,278,300,301,310,332,342,363,364,374,395,406,427,438,459,469,470,491,501,521,522,523,532,533,552,553,564,584,595,596,616,627,648,659,680,681,682,691,714,715,716,717,723,749,750,751,754,755,783,784,785,786},
  /* Template 5 */
  {207,208,209,210,211,238,239,243,269,270,275,276,277,301,309,310,332,333,342,363,364,374,395,406,407,427,439,459,470,471,490,491,501,502,520,521,522,532,533,552,564,584,595,596,616,627,648,659,680,681,682,690,691,714,715,716,722,748,749,750,754,782,783,784,785,786},
  /* Template 6 */
  {240,241,242,243,269,270,271,272,275,276,300,301,308,331,332,340,341,342,363,374,375,395,407,426,427,439,458,471,489,490,502,503,520,521,532,533,534,550,551,552,564,582,595,596,614,627,646,658,659,678,679,680,681,682,689,690,714,715,721,747,748,749,753,781,784,785,813,814,815,816},
  /* Template 7 */
  {241,242,243,269,270,271,272,273,275,276,299,300,301,308,309,331,341,342,363,374,394,395,406,407,426,439,440,458,472,488,489,490,503,504,518,519,520,533,534,535,549,550,564,565,581,595,596,613,614,627,646,647,648,649,658,659,681,682,689,690,714,715,720,721,747,748,752,780,783,784,812,813,814,815},
  /* Template 8 */
  {270,271,272,273,274,275,301,302,307,308,332,333,340,341,342,363,364,374,394,395,406,426,438,457,458,470,471,486,487,488,489,503,518,534,535,550,565,566,582,596,597,614,627,628,646,647,648,649,657,658,659,681,682,689,714,720,721,746,747,748,751,752,780,781,782,783},
  /* Template 9 */
  {238,239,240,241,270,273,274,275,301,302,307,308,332,333,340,364,372,373,374,394,395,396,406,407,426,439,440,457,458,472,487,488,489,504,518,519,534,535,536,550,565,566,582,596,597,614,615,627,628,647,648,657,658,659,680,681,689,713,714,719,720,721,746,747,748,750,751,780,781,782},
  /* Template 10 */
  {271,272,273,274,275,276,301,302,303,308,332,333,340,364,372,373,394,395,396,405,406,407,425,426,439,440,455,456,457,472,487,504,518,519,535,536,550,567,582,596,597,598,599,614,615,627,628,647,648,657,658,659,680,681,688,689,713,719,720,745,746,750,751,778,779,780,781,782},
  /* Template 11 */
  {271,272,273,274,275,301,302,303,307,308,333,340,364,365,372,373,395,396,405,406,425,426,427,438,439,454,455,456,457,471,486,503,518,535,550,566,567,582,583,597,598,615,626,627,628,629,647,648,657,658,680,681,687,688,689,713,718,719,745,746,749,750,778,779,780,781},
  /* Template 12 */
  {273,274,275,302,303,304,305,307,308,333,334,340,364,365,372,373,396,405,406,407,424,425,426,427,428,439,454,455,456,471,486,503,518,535,550,551,567,583,597,598,599,615,616,627,628,629,648,649,657,658,659,681,687,688,689,713,718,719,745,746,747,748,749,750},
  /* Template 13 */
  {301,302,303,304,305,306,307,308,309,332,333,341,364,373,390,391,392,393,394,395,396,405,406,407,422,439,440,454,472,486,504,518,536,550,567,568,582,583,598,599,615,616,627,628,629,630,648,657,658,659,680,681,687,688,689,713,716,717,718,719,745,746,747,748},
  /* Template 14 */
  {301,302,303,304,305,306,307,308,332,333,340,341,358,359,360,361,362,363,364,373,389,390,405,406,407,408,421,440,453,472,485,486,503,504,518,519,535,551,567,583,598,599,615,616,628,629,630,648,657,658,659,660,680,687,688,689,712,713,714,715,716,717,718,719},
  /* Template 15 */
  {301,302,303,304,305,306,307,308,332,333,340,341,358,359,360,361,362,363,364,373,390,405,406,407,408,422,440,454,472,486,504,518,519,535,536,551,567,583,599,615,616,630,631,648,657,658,659,660,661,662,680,686,687,688,689,712,713,715,716,717,718,745,746,747},
  /* Template 16 */
  {301,302,303,304,305,306,307,308,327,328,329,330,331,332,333,340,341,358,359,373,390,405,406,407,422,439,440,454,472,486,504,518,536,550,551,568,583,599,600,615,630,631,647,659,660,661,662,679,684,685,686,687,688,689,690,691,711,712,713,714,715,716},
  /* Template 17 */
  {300,301,302,303,304,305,306,307,308,326,327,328,329,330,331,332,340,341,358,373,374,390,406,407,422,439,440,454,472,486,487,504,519,536,551,567,568,583,599,615,631,647,661,662,663,679,683,684,685,686,687,688,689,690,691,692,693,711,712,713,714,715},
  /* Template 18 */
  {327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,359,374,391,406,407,423,439,440,455,472,487,504,519,536,551,568,583,600,615,632,647,662,663,664,679,680,681,682,683,684,686,687,688,689,690,691,692,693,694,716,717,718},
  /* Template 19 */
  {296,297,298,299,300,301,302,327,328,334,335,336,337,338,339,340,341,359,373,374,391,406,407,423,439,440,455,472,487,504,519,536,551,568,583,600,615,632,647,648,662,663,664,680,681,682,683,684,685,686,688,689,690,691,692,693,694,718,719,720},
  /* Template 20 */
  {296,297,298,299,300,301,302,303,328,335,336,337,338,339,340,360,372,392,404,405,406,407,423,424,439,455,471,472,487,504,505,519,537,550,551,569,582,601,614,631,632,633,646,647,648,649,650,651,652,653,662,663,685,686,687,688,689,690,691,693,694,723,724,725},
  /* Template 21 */
  {234,235,236,265,266,268,269,270,271,296,297,303,328,335,336,337,338,360,370,371,372,373,374,391,392,406,423,438,439,440,455,472,473,487,505,518,519,536,537,550,568,582,583,600,615,616,617,618,619,632,651,652,653,654,663,664,686,687,688,689,693,694,695,721,722,723,724,725},
  /* Template 22 */
  {233,234,235,264,265,267,268,269,270,271,272,296,304,328,336,337,338,339,359,360,371,372,373,391,405,406,407,423,439,455,471,486,487,503,518,535,550,567,582,583,599,615,616,617,618,619,631,651,652,653,663,685,686,687,688,689,693,694,695,721,722,723,724,725},
  /* Template 23 */
  {201,202,203,232,233,235,236,264,268,269,270,271,296,303,304,328,336,337,338,339,360,371,372,390,391,392,404,405,422,437,438,439,454,471,486,503,518,535,536,550,568,582,583,584,585,600,617,618,619,620,632,652,653,654,663,664,686,687,688,694,695,720,721,722,724,725,726,754,755,756},
  /* Template 24 */
  {234,235,236,266,268,269,270,296,297,298,302,303,304,328,336,337,360,369,370,391,392,402,403,404,423,436,437,438,454,455,470,471,486,503,518,535,550,551,567,568,569,583,584,585,586,587,601,619,620,633,652,653,654,663,664,665,686,687,688,694,695,720,721,725,726,753,754,755,756,757},
  /* Template 25 */
  {236,237,238,266,267,268,270,271,298,303,304,329,330,336,337,359,360,361,369,370,391,402,403,404,422,423,436,437,454,469,470,471,486,503,518,519,535,551,552,553,554,567,568,586,587,600,619,620,621,631,632,653,654,663,686,687,688,694,695,720,721,724,725,726,753,754,755,756},
  /* Template 26 */
  {204,205,206,207,236,239,265,266,267,268,271,297,303,304,328,329,336,359,360,368,369,390,391,401,402,403,422,435,436,437,454,469,470,471,486,487,503,504,519,520,536,552,553,567,568,585,586,587,599,619,620,631,652,653,654,663,686,687,694,695,719,720,721,724,725,726,753,754,755,756},
  /* Template 27 */
  {205,206,207,235,236,237,239,265,266,267,271,272,296,297,304,326,327,328,336,337,358,369,370,390,402,403,422,435,436,454,455,468,469,487,501,502,503,519,520,521,535,553,567,585,586,587,588,599,620,631,652,653,663,685,686,687,695,719,720,725,726,727,752,753,754,755,756,757},
  /* Template 28 */
  {233,234,235,236,237,238,239,240,265,272,296,297,304,328,336,337,358,359,360,369,370,390,402,403,422,435,436,437,454,469,470,471,472,486,487,488,489,504,521,536,553,554,555,568,587,588,600,620,631,632,652,653,663,685,686,695,718,719,725,726,727,751,752,753,754,755,756,757},
  /* Template 29 */
  {236,237,238,239,240,264,265,266,267,268,272,296,304,327,328,336,337,359,369,391,401,402,403,423,435,436,455,456,457,468,489,490,500,501,502,503,504,522,536,554,555,568,587,588,600,620,631,632,652,653,663,685,686,694,695,718,719,725,726,751,752,753,754,755,756,757},
  /* Template 30 */
  {204,205,206,236,238,239,240,264,265,266,267,268,272,273,295,296,305,327,337,359,369,391,392,401,424,433,434,435,436,456,457,458,468,469,490,501,502,522,523,534,535,555,567,587,588,599,620,631,652,653,662,663,685,686,694,718,719,725,726,751,752,753,754,755,756,757},
  /* Template 31 */
  {173,174,175,205,207,208,236,237,240,241,264,265,266,267,268,273,295,296,305,327,337,359,369,370,391,392,402,424,425,426,434,435,458,467,468,490,500,501,522,523,533,534,555,566,587,598,619,620,630,652,653,662,685,693,694,717,718,725,750,751,752,753,754,755,756,757},
  /* Template 32 */
  {205,206,207,208,236,237,240,264,265,266,267,268,272,296,304,328,336,360,368,369,392,393,401,402,425,426,434,435,458,467,468,490,491,500,523,532,533,534,555,566,587,598,619,620,630,652,653,662,685,693,694,717,718,724,725,750,751,752,754,755,756,784,785,786},
  /* Template 33 */
  {236,237,238,239,264,265,266,267,268,271,272,296,304,328,336,360,361,368,369,370,371,393,403,425,426,435,458,467,490,491,499,500,523,532,533,555,565,566,567,587,599,619,620,631,652,663,684,685,693,694,695,717,724,725,749,750,755,756,782,783,784,785,786,787},
  /* Template 34 */
  {234,235,236,237,238,239,265,266,271,297,303,304,329,336,361,362,368,369,370,394,402,403,426,427,435,459,467,468,491,500,501,502,523,534,555,566,587,598,619,630,631,651,663,683,684,694,695,716,717,724,725,726,749,750,751,755,756,783,784,785,786,787},
  /* Template 35 */
  {234,235,236,237,238,239,240,241,242,243,244,245,265,266,277,278,297,310,329,342,361,362,373,374,394,395,405,427,437,459,469,491,501,523,533,555,565,587,597,618,619,629,650,661,682,683,693,715,716,724,725,748,749,750,755,756,782,783,784,785,786,787},
  /* Template 36 */
  {210,211,212,234,235,236,237,238,239,240,241,242,244,245,265,266,277,297,309,329,330,341,342,362,363,374,395,406,427,438,459,470,491,502,523,534,554,555,566,586,597,598,618,629,650,661,682,692,693,714,715,724,747,748,749,755,756,781,782,785,786,787,814,815,816,817},
  /* Template 37 */
  {205,206,207,208,209,210,211,212,213,235,236,237,245,246,267,278,279,299,311,331,343,363,374,375,395,406,427,438,459,470,491,502,523,534,554,555,566,586,598,618,630,650,662,682,693,694,714,715,716,724,725,748,749,755,756,781,782,783,784,785,786,787},
  /* Template 38 */
  {242,243,244,272,273,274,276,277,278,304,310,336,342,368,374,375,398,399,400,407,429,430,439,461,470,471,492,493,502,522,523,524,534,552,553,554,566,584,597,598,616,629,648,649,661,681,682,683,692,693,715,716,723,724,748,749,750,754,755,782,783,784,785,786},
  /* Template 39 */
  {241,242,243,272,273,275,276,277,278,279,280,304,312,336,344,368,376,398,399,400,407,408,430,439,461,462,470,471,492,493,502,523,524,534,553,554,555,566,585,598,617,629,630,649,650,660,661,682,683,684,692,716,717,723,724,749,750,753,754,755,782,783,784,785},
  /* Template 40 */
  {240,241,242,243,272,275,276,277,278,304,310,311,312,336,344,368,376,398,399,400,408,429,430,439,440,461,471,492,493,503,521,522,523,524,534,535,553,566,585,597,598,617,618,629,650,661,682,683,692,693,715,716,723,724,748,749,750,751,754,755,783,784,785,786},
  /* Template 41 */
  {240,241,242,243,244,272,276,277,304,309,310,311,336,343,344,345,368,377,398,399,400,409,429,430,440,441,461,472,492,493,503,504,521,522,523,524,534,535,553,564,565,566,585,596,617,618,628,650,660,682,683,692,715,716,723,724,748,749,750,751,752,753,754,755},
  /* Template 42 */
  {240,241,242,243,244,245,272,277,304,309,310,336,342,343,344,367,368,376,398,399,408,429,430,440,460,461,472,490,491,492,504,521,522,535,536,553,564,565,566,567,585,586,596,618,628,650,660,682,683,691,692,715,716,722,723,748,749,750,751,752,753,754},
  /* Template 43 */
  {241,242,243,244,245,273,277,305,309,310,336,337,342,343,344,345,346,368,378,397,398,399,400,410,429,442,460,461,473,474,491,492,503,504,505,522,523,535,554,565,566,567,586,597,617,618,629,649,660,661,681,682,683,691,692,715,716,723,748,749,750,751,752,753,755,785,786,787},
  /* Template 44 */
  {242,243,244,273,274,276,277,305,309,310,337,342,343,367,368,369,375,376,377,378,397,398,399,410,429,442,459,460,461,473,474,491,504,505,522,523,535,536,554,566,567,586,598,618,629,630,650,660,661,682,683,690,691,692,715,716,717,721,722,749,750,751,752,753},
  /* Template 45 */
  {274,275,276,277,306,309,310,311,312,337,338,344,345,367,368,369,377,397,398,399,409,428,429,441,459,460,473,490,491,505,522,536,537,554,566,567,568,586,597,598,618,629,650,659,660,661,682,683,690,691,715,716,717,718,721,722,750,751,752,753},
  /* Template 46 */
  {274,275,276,277,305,306,309,310,311,312,336,337,344,366,367,368,376,398,408,428,429,430,440,441,458,459,460,473,490,505,522,536,537,553,554,567,568,584,585,598,599,616,629,630,648,649,650,651,659,660,661,683,690,691,715,716,717,718,719,720,721,722},
  /* Template 47 */
  {305,306,307,308,309,310,337,342,343,366,367,368,369,375,396,397,398,407,408,428,440,441,458,459,460,473,490,505,522,537,553,554,568,569,585,598,599,600,617,618,629,630,650,659,660,661,682,683,689,690,691,715,716,717,720,721,749,750,751,752},
  /* Template 48 */
  {273,274,275,276,277,305,309,310,334,335,336,337,342,343,365,366,375,395,396,397,407,408,425,426,427,440,457,472,473,489,505,521,537,553,569,585,598,599,600,601,617,618,628,629,630,650,651,658,659,660,683,684,688,689,690,716,717,718,719,720},
  /* Template 49 */
  {275,276,277,278,306,307,310,334,335,336,337,338,342,343,362,363,364,365,366,375,393,394,407,408,425,440,457,472,473,489,505,521,537,553,569,585,599,600,601,617,618,628,629,630,631,650,651,658,659,660,683,684,687,688,689,690,716,717,718,719},
  /* Template 50 */
  {306,307,308,309,310,311,333,334,335,336,337,338,343,363,364,365,375,393,394,395,407,408,425,440,457,472,489,504,505,521,537,553,569,585,600,601,617,618,627,628,629,630,631,632,650,651,652,657,658,659,684,685,686,687,688,689},
  /* Template 51 */
  {307,308,309,310,311,331,332,333,334,335,336,337,338,339,343,362,363,375,393,394,407,408,425,440,457,472,489,504,521,536,537,553,569,585,586,601,618,619,627,628,629,630,631,632,633,651,652,655,656,657,658,659,684,685,686,687},
  /* Template 52 */
  {302,303,304,305,306,307,308,309,310,333,334,342,343,362,363,364,365,375,376,394,408,425,426,440,455,456,457,472,487,504,519,536,551,552,553,568,585,600,617,618,619,629,630,631,632,651,652,654,655,656,657,658,659,660,661,684,685,686},
  /* Template 53 */
  {302,303,304,332,333,334,336,337,338,339,340,341,342,343,344,362,363,364,376,394,408,424,425,426,440,456,472,487,488,504,519,536,551,552,568,584,600,616,617,618,619,632,651,652,653,654,655,656,657,658,659,660,661,662,663,664},
  /* Template 54 */
  {331,332,333,334,335,336,337,338,362,363,370,371,372,373,374,375,376,394,408,423,424,425,426,440,455,472,487,504,519,536,551,568,583,600,615,616,617,618,619,632,651,652,653,660,661,662,663,664,685,687,688,689,690,691,692,717,718,719},
  /* Template 55 */
  {331,332,333,334,335,336,337,338,363,370,371,372,373,374,375,391,392,393,394,395,407,408,423,440,455,472,487,504,519,536,551,552,553,568,585,586,600,618,619,620,621,632,653,654,655,656,657,658,659,660,661,662,664,694,695,696},
  /* Template 56 */
  {267,268,269,270,299,302,331,334,335,336,337,338,339,340,361,362,363,372,373,374,375,376,391,392,393,408,409,410,423,442,455,473,474,487,505,519,537,551,552,553,554,569,586,587,588,589,601,621,622,623,624,625,633,657,658,659,660,661,662,663,664,665},
  /* Template 57 */
  {268,269,270,299,300,302,303,330,331,335,336,337,338,339,359,360,361,362,371,391,403,404,405,406,407,408,423,440,441,455,473,487,505,519,520,521,537,553,554,569,586,587,588,589,590,600,601,622,623,624,625,632,657,658,659,660,664,692,693,694,695,696},
  /* Template 58 */
  {299,300,301,302,303,304,331,336,337,360,361,362,363,369,370,371,391,392,403,404,405,406,407,408,423,440,455,472,473,474,487,488,506,520,521,522,537,538,554,555,569,587,588,589,590,591,600,601,623,624,625,632,657,658,659,664,691,692,693,694,695,696},
  /* Template 59 */
  {299,300,301,302,303,304,330,331,336,337,360,361,362,369,370,371,372,392,404,424,436,437,438,439,440,456,472,488,489,504,505,521,522,537,554,555,556,568,569,588,589,590,591,600,623,624,625,631,632,657,658,663,690,691,692,693,694,695},
  /* Template 60 */
  {299,300,301,302,303,304,330,331,336,337,360,361,362,369,370,371,372,392,404,424,436,437,456,469,470,471,472,488,489,504,505,521,522,523,537,555,556,557,568,569,589,590,591,599,600,623,624,631,656,657,658,662,663,690,691,693,694,723,724,725},
  /* Template 61 */
  {267,268,269,270,271,298,299,303,304,305,329,330,337,338,359,360,361,370,391,402,403,404,423,424,436,437,456,457,469,470,471,472,489,490,504,522,523,536,555,556,557,568,589,590,599,600,622,623,624,630,631,656,657,662,689,690,691,693,694,723,724,725},
  /* Template 62 */
  {267,268,269,270,271,272,298,299,304,305,329,330,337,338,361,370,393,402,403,404,405,425,437,457,469,470,489,490,502,503,504,522,523,536,555,556,557,568,589,590,600,622,623,630,631,632,655,656,657,661,662,689,692,693,721,722,723,724},
  /* Template 63 */
  {267,268,269,270,271,272,273,296,297,298,299,305,306,328,338,339,340,360,372,373,392,405,424,425,437,457,458,469,490,491,501,502,503,523,524,525,535,557,566,567,589,590,598,622,623,630,655,659,660,661,662,687,689,690,691,719,720,721},
  /* Template 64 */
  {266,267,268,269,270,271,272,273,297,298,305,306,329,338,339,361,371,393,403,425,426,435,436,437,458,459,469,491,492,501,502,524,525,534,557,566,589,590,598,622,623,630,655,656,659,660,661,662,688,689,690,691},
  /* Template 65 */
  {266,267,268,269,270,271,272,273,274,297,298,306,329,338,339,361,371,393,394,403,426,435,436,437,458,459,469,491,492,501,524,525,533,534,557,566,589,590,598,622,623,629,630,655,658,659,660,661,687,688,690,720,721,722},
  /* Template 66 */
  {234,235,236,237,238,265,266,270,271,272,273,274,275,276,297,308,329,340,361,372,393,404,405,425,426,437,458,459,469,491,492,501,524,533,556,557,565,566,589,598,621,622,629,630,654,660,661,686,690,691,692,718,719,720,721,722},
  /* Template 67 */
  {234,235,236,237,238,239,266,271,272,273,298,305,306,307,308,330,340,362,372,394,404,426,427,436,437,459,469,491,501,523,524,533,556,565,566,588,598,620,621,629,630,653,654,659,660,661,686,689,690,691,718,719,720,721},
  /* Template 68 */
  {234,235,236,237,238,239,266,271,272,273,274,275,298,307,329,330,339,361,371,372,393,404,425,426,436,458,468,469,490,491,501,523,533,555,565,587,588,597,620,621,629,653,659,660,661,685,688,689,690,691,717,718,719,720},
  /* Template 69 */
  {203,204,205,206,234,235,238,239,240,266,272,273,274,275,298,307,330,339,340,362,372,394,404,426,436,458,468,469,490,501,522,523,533,555,565,587,588,597,620,629,652,660,661,684,688,689,690,691,692,716,717,718,719,720},
  /* Template 70 */
  {235,236,237,238,239,240,241,267,273,274,275,299,307,308,330,331,340,362,372,394,404,426,427,436,459,468,491,500,501,523,533,555,565,587,597,619,629,651,661,683,684,689,690,691,692,693,716,717,718,719,720,721},
  /* Template 71 */
  {236,237,238,239,240,241,267,268,273,274,275,276,299,308,331,340,341,342,363,374,395,405,406,427,437,458,459,469,490,501,522,533,554,565,586,596,597,618,628,650,660,682,683,692,715,716,717,718,719,720,721,722,723,724}
};



